Carriage Return from HTML file

  • Thread starter Thread starter Edo
  • Start date Start date
E

Edo

Hi all, I would like to create xls file via code (C#), and I've thought to
create a simple html file renaming it to xls. That works, but I'm no able to
write return character in a single cell (Alt+Return). If I write 'html
return' (<br>), excel creates a new cell, but I would return to be in the
same cell!

Any suggestion?
Thanks a lot
Edo
 
Are you formatting your output as a table ? Excel normally keeps the conent
of a <td> in the same cell.

Try wrapping your multi-line text in a single-cell table.

Tim
 
Hi Tim, yes, I'm formatting output as a table. Each <tr> become a single row
and each '<td>' become a single cell; the problem is when I want to insert
'return' character (Alt+Return) in a single cell. I think I need a special
char that will be interpreted as a return by excel...

Thanks,
Edoardo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top