web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Excel libraries in the Business Central web client

(0) ShareShare
ReportReport
Posted on by 95

Hi. I need help to be able to use Excel libraries in the Business Central web client.

I am using an On Premise version where I can use dotnet libraries. In the client version it works perfectly, but in the web
client version it fails me both when opening the excel file and creating a new one.

I have the variables initialized as XlApp: DotNet Excel_ApplicationClass and XlWrkSht: DotNet Excel_Worksheet;

My code is as follows:

XlApp: = XlApp.ApplicationClass ();
XlWorkBook: = XlApp.Workbooks (). Add ();

The fault is in .Add (). As I have read in forums, you have to leave it blank to create a default sheet, but I receive the
error wrong format. A variable must be passed to Add (Template: Dotnet "System.Object"). I have tried to pass that type of variable and a text with a template path as it did in the client version, but it does not work in any case. Keep giving error.

Could anyone help me?

Greetings and thanks.

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    These are working totally different between the 2 clients.

    You have to stick with this article

    www.kauffmann.nl/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,958 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,101 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans