Hello,
I am using code below in for each loop to generate Main Final document from various child documents. Everything looks good but the font, once in a time during the loop it seems the font on lobjAppendDoc is changed. How can I set the font for this object to always be Times New Roman and 12 size ?
When the loop ends I just want to be sure that entire document has same font and size. Please let me know.
Thanks,
Vinay Hattarki
Foreach ......
Dim lbMyData() As Byte
lbMyData = poDocBytes
If IO.File.Exists(System.IO.Path.GetTempPath & "TempAppend.Doc") = True Then
IO.File.Delete(System.IO.Path.GetTempPath & "TempAppend.Doc")
End If
IO.File.WriteAllBytes(System.IO.Path.GetTempPath & "TempAppend.Doc", lbMyData)
Dim lobjAppendDoc As New Aspose.Words.Document(System.IO.Path.GetTempPath & "TempAppend.Doc")
If pbSectionContinuous = True Then
lobjAppendDoc.FirstSection.PageSetup.SectionStart = SectionStart.Continuous
End If
AsposeUnlinkFields(lobjAppendDoc)
lobjAppendDoc.FirstSection.PageSetup.PaperSize = Aspose.Words.PaperSize.Legal
mobjMainAsposeDoc.AppendDocument(lobjAppendDoc, ImportFormatMode.UseDestinationStyles)