A year ago I saw a beautiful simple code that gets a data table and saves it in an excel file.
The trick was to use the web library (something with http) and I’m almost sure it was a stream.
I find a lot of code with response but I can’t make it work in a win-form environment.
There is also a cell by cell code – not interested -too slow.
I want to paste it as a range or something close.
Thanks
I believe this is the code you’re looking for:
DataTable to Excel
It uses an
HtmlTextWriter.