exporting html table multi line columns to excel multi line cells

Posted by Passat on Stack Overflow See other posts from Stack Overflow or by Passat
Published on 2013-06-27T21:56:52Z Indexed on 2013/06/27 22:21 UTC
Read the original article Hit count: 147

Filed under:

I have a html table in a view MVC4 that I am sending to excel as output. Inside the view page I have some columns that have multiple lines that are built with forloops within the HTML. What's the best way to add the
or \r\n so that excel renders it correctly?

I have a table and inside I build each row looping thru a recordset. In each row I also loop thru different recordsets to populate columns within each row so that some of the columns may contain more than one value and they should show in different lines in the table that will export to excel.

© Stack Overflow or respective owner

Related posts about c#