Hi Team,
We are using Aspose .NET for word.
There is a template file from which we create the actual output file.
The template file will have the header text in the following manner :
Our Ref:
We need to replace the part of the header with another value.We are thinking in the below lines.
foreach(Section section in doc.Sections)
{
foreach(HeaderFooter hf in section.HeadersFooters)
{
if(hf.GetText().ToUpper().Contains("<HEADER BORROWER NAME>"))
{
string header = hf.GetText().ToUpper().Replace("<HEADER BORROWER NAME>", "Borrower Name 1");
….
}
}
}
We are not able to assign header value to this. Let us know on how to proceed with this