Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

C# windows service to export data table to Excel

I'm writing a windows service using visual Studio 2017 C#.  How can I export the contents of a data table to an xlsx file without using any 3rd party utilities except Nuget?
Avatar of DevAdmin
DevAdmin
Flag of Italy image

In the past I used the library https://github.com/JanKallman/EPPlus
Avatar of AlHal2

ASKER

I'm reluctant to use unknown libraries as they may run custom build scripts as per the Visual studio message.  Would you be able to extract the relevant code.  Alternatively I don't mind using the microsoft.office.interop.Excel library.
SOLUTION
Avatar of DevAdmin
DevAdmin
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

Thanks both.