Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a class library file in which i have the Data in the multiple datasets which i want to export to Excel file.It could be in a single Worksheet or multiple WorkSheets.

Do anyone worked on this before???

Thanks,
Prasant
Posted

1 solution

You can use Open XML SDK 2.0 for this purpose.

Read more about Open XML SDK 2.0 at Welcome to the Open XML SDK 2.0 for Microsoft Office
[^]

Following article explains how to export data table to excel using this sdk
OpenXML SDK 2.0: Export a DataTable to Excel
[^] You can wrap this logic for multiple datasets.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900