Excelsheet as html

  • Thread starter Thread starter Sascha
  • Start date Start date
S

Sascha

Hello,

our asp.net application generates xls files with html inside and sends the
output to the browser. The user can save the file to disk, or if he clicks
open he can open the file in his excel application. Almost everything works
fine, the tablecontent is correct and the data could display correctly. Our
customers ask us to autofit the columns in excel per default, but we don't
find a attribute for the table or td tag in html to do this.
How can i autofit columns in html?
 
Probably the best you could do would be to set the width of each column to
something approximately correct...

Tim
 
Back
Top