Michael G. Schneider wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> schrieb im Newsbeitrag
news:Ox*************@TK2MSFTNGP10.phx.gbl...
Reverse engineer it. Create a spreadsheet in excel that contains
multiline data, save it as html and look at the source to see what
you need to generate in asp.
Thank's a lot for the answer.
Currently, I only set the ContentType corretly, then generate a
simple HTML table with nothing more than some tr's and td's. That is
enough for making Excel show the worksheet.
Reverse engineering the Excel HTML output meant that a lot of "noise"
would have to be generated. There is much more in a HTML file
generated by Excel than the HTML table.
I'm not telling you to use the entire html from the test file ... just find
the part where the line break is accomplished and incorporate that into your
asp code.
I suspect it has something to do with setting the column width (perhaps
using <col> tags). The only way to know for sure is to look at the html that
Excel generates to accomplish the same formatting.
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.