Using only .NET components (rather than 3rd party components), is there a way
to export data from a DataTable or DataView directly to an .xls or .csv file?
¤ Using only .NET components (rather than 3rd party components), is there a way
¤ to export data from a DataTable or DataView directly to an .xls or .csv file?
There is no bulk method to perform the export. You would have to export line by line.
If you just want to transfer data from dataset to CSV file, please
reference the following document. http://www.dotnetspider.com/kb/Article1336.aspx
[Export Database Table to CSV file format]
I searched on internet for you and found there is a class library for
exporting. I hope this is helpful for you. http://www.codeproject.com/aspnet/ExportClassLibrary.asp
[C# class library for exporting data to CSV/Excel file]
Hope this helps,
Best regards,
Wen Yuan
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.