I am using Aspose Words 6.3.0 with a MS Word 2013 document to do a mail merge and convert to pdf.
It all worked fine but then I added text boxes to the Word document for formatting purposes. So the hard coded text plus the mail merge fields are in text boxes.
When I run my code, the pdf now comes out blank. Also I saved to a word document and this come out blank.
If I just read in the document and save it back out .The hard coded text within the textboxes do not show up.
Am I doing something wrong?
Aspose.Words.License wlicense = new Aspose.Words.License();
wlicense.SetLicense(“Aspose.Words.lic”);
string templatePath = ConfigurationManager.AppSettings[“RMATemplatePath”];
Aspose.Words.Document _doc = new Aspose.Words.Document(templatePath);
string docPath = ConfigurationManager.AppSettings[“RMADocumentPath”];
string docName = entity.Rmanumber + “.pdf”;
string docNameWord = entity.Rmanumber + “.docx”;
string fullDocName = docPath + docName;
string fullDocNameWord = docPath + docNameWord;
_doc.Save(fullDocName);
_doc.Save(fullDocNameWord);
_doc.Save(fullDocNameWord);