I have a regular html table:
<table>
<tr>hello</tr>
<tr>world</tr>
</table>
and I create an XLS file from it:
string randomname = @"C:\attachmentsfolder\" + System.IO.Path.GetRandomFileName() + ".xls";
System.IO.File.WriteAllText( randomname, message);
When I open the generated XLS file, I need to REVERSE expand the columns to see long data.
My question is: how can I generate this XLS file so that the columns are already properly configured?
source
share