Hi all
Just for anyone else out there that might have this problem. We use DocIO to generate template word docs for clients and replace certain keywords with our own values. We had a problem with an address block that contains a "\n" as the character to replace with a line break e.g.
Joe Bloggs\nAddress1\nAddress2\nAddress3\Postcode\nCountry
We needed the above to read as
Joe Blogs
Address1
Address2
Address3
Postcode
Country
Using the replace function with the BreakType.LineBreak didn't work but using Environment.NewLine (we're using VB.NET) does. So the code to replace \n with a new line would be:
doc.Replace("\n", Environment.NewLine, False, False)
Thought this might help anyone else who's having a similar issue.
Cheers