Click here to Skip to main content
15,914,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi. I am developing a program that needs to export data (either from gridview or datatable whichever is good) to MS Excel.

Aside from these, do we have other option:
1. Use of ExcelInterop since it needs MS Office Excel to be installed in the server, or else it will prompt error
2. StreamWriter as this renders the gridview as HTML and prints the whole page instead of the control alone. It also does not support .xlsx file.
2. OpenXML

I've been trying to look for solution but doesnt seem to get one.
Thanks, Your suggestions will be highly appreciated!
Posted

1 solution

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