PC Review


Reply
Thread Tools Rate Thread

Creating a line break (newline) in a cell with SpreadsheetML

 
 
Harald
Guest
Posts: n/a
 
      11th Feb 2008
Hi, while generating cell content I'd like to know how to code a line break in the cell data (datatype string). I'm using XML (Office XML + SpreadsheetML) to generate the Exel sheet and the .net framework 2.0 XML XML classes (XmlDocument, XmlNode, etc.).

I tried to code " " but this unfurtunately resolves to "&amp;#10;" in the resulting file. So I tested to replace "&amp;#10;" with " " (manually, after creating the file), but Excel doesn't recognize that as line feeds until (sic!) entering the cell an pressing <enter>. Then, excel does some conversion (but I didn't find any difference in the XML files cell data afterwards) and then accepts the line feed - more sic! :-(

So I need to know how to do that the recommended way. Any idea???
Or any hint where to search such information?

Thx in advance, hd
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a line break ********Meg Microsoft Excel Discussion 8 11th Jun 2009 09:55 PM
How to line break in one cell via a formula to stack cell entries Barb @ Work Microsoft Excel Worksheet Functions 7 15th Apr 2008 09:01 PM
Inserting NewLine (line break) into resource string Penelope Dramas Microsoft VB .NET 1 21st Mar 2007 10:30 PM
Break cell into multiple lines by line break =?Utf-8?B?Q2hpYQ==?= Microsoft Excel Misc 1 20th Aug 2006 06:37 AM
hard line break in multi-line text in cell mark Microsoft Excel Misc 2 21st Apr 2004 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 PM.