I have written an asp page that outputs data from a database into an excel spreadsheet using:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=mydata.xls;"
I want to format the cell widths so the width is as long as the data in the cell.
Can I do this by setting the width property of the <td> to the length of the data in the cell or is there a better way?
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=mydata.xls;"
I want to format the cell widths so the width is as long as the data in the cell.
Can I do this by setting the width property of the <td> to the length of the data in the cell or is there a better way?