tags:

views:

346

answers:

1

I am appending some text containing '\r\n' into a word document at run-time. But when I see the word document, they are replaced with small square boxes :-(

I tried replacing them with System.Environment.NewLine but still I see these small boxes.

Any idea?

+3  A: 

Have you not tried one or the other in isolation i.e.\r or \n as Word will interpret a carriage return and line feed respectively. The only time you would use the Environment.Newline is in a pure ASCII text file. Word would handle those characters differently! Or even a Ctrl+M sequence. Try that and if it does not work, please post the code.

Hope this helps, Best regards, Tom.

tommieb75