How to change of document as “Overpass” font. As we are saving saction information as blob. because of that it is showing default selected font as “OverPass”. But it is not “OverPass” font.
Below is the code:
Stream HeaderTemplate = ePAPS_FileUtility.GetFile(ConfigurationManager.AppSettings["Templates"] + "PAPHeader.docx");
Stream ApprovalTemplate = ePAPS_FileUtility.GetFile(ConfigurationManager.AppSettings["Templates"] + "PAPApprovals.docx");
Aspose.Words.Document headerDoc = AsposeHelper.Document.WordDoc(HeaderTemplate);
DataTable SecData = Data.Tables[2];
engine.BuildReport(headerDoc, report);
Document doc = AsposeHelper.Document.WordDoc(ApprovalTemplate);
engine.BuildReport(doc, report);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("Table");
String strHTML = buildHtml(report);
builder.InsertHtml(strHTML);
String strHTML_Approvers_Comments = BuildHtml_Approvers_Comments(report);
builder.InsertHtml(strHTML_Approvers_Comments);
String strHTML_Taxonomy = buildESPTaxonomyHtml(Request_Number);
builder.InsertHtml(strHTML_Taxonomy);
Aspose.Words.Font font = builder.Font;
builder.MoveToBookmark("TOC");
builder.InsertTableOfContents("\\o \"1-3\" \\h \\z \\u");
builder.MoveToBookmark("Main");
await WriteData(SecData, builder, Request_Number: Request_Number, soeid: soeid);
headerDoc.AppendDocument(doc, Aspose.Words.ImportFormatMode.KeepSourceFormatting);
setTOCStyle(headerDoc, StyleIdentifier.Toc1);
setTOCStyle(headerDoc, StyleIdentifier.Toc2);
setTOCStyle(headerDoc, StyleIdentifier.Toc3);
headerDoc.UpdateFields();
//RemoveBlankPageFromWord(headerDoc);
Find attached document WordWithBlankPages.docx (19.6 KB)