Hello, Support.
I am trying to replace a text in an aspose word document but I can not keep the correct formatting. for example the below string is retrieve from the database:
header = "Name:\t" + row[NAME] + "\n";
header += "ENum:\t" + row[ENUM] + "\n";
header += "Office:\t" + row[OFFICE] + "\n";
header += "Group:\t" + row[GROUP] + "\n";
header += "Sub group:\t" + row[SUBGROUP] + "\n";
When I use the aspose code: Word.FirstSection.Range.Repleace("Header",header,false,true) I am able to replace the code but all the text is replaced in one line as: follows:
[Name: John Doe. ENum: 00000 Office: Washington D.C. Group: Business Subgroup: International Author: ]
I need it to keep each in different lines like this:
Name: John Doe.
ENum: 0000
Office: Washington D.C.
Group: Business
Sub group: International
Author:
Please Advice