Right now I'm exporting some text to a 2010 Word document. I have everything working except new lines. What is the character for a new line? I've tried "\r\n", " ^p ", and "\n", Nothing is working.
I'm using the "FindAndReplace" method to replace strings with strings.
The purpose for the newlines is some required formatting. My coworkers have a 6 line box that the text belongs in. On line 1 in that box I have "" and I'm replacing it with information from a database. If the information exceeds one line, they don't want the box to become 7 lines. So I've figured out how to calculate how many lines the text requires and I re-sized the box to 1 line. So for example if my string requires 2 lines, I want to put 4 blank lines after that.
If this is not possible, I was thinking of putting in that box:
<line1>
<line2>
<line3> and so on...
Then just replace each line individually. Any other thoughts?
Thanks in advance.