Free Support Forum - aspose.com

Font Changing after Mail merge in word

We have done the mail merge of the label but it changes the Font after mail merge on the created Doc .

We are doing on .net3.5 framework .

Please check the Attachments . One is the template and another is the created doc .

We have also purchased the License but we are worried …

Below is our code :

<span style=“font-size: 10pt; font-family: “Courier New”; color: rgb(43, 145, 175);”>Document<span style=“font-size: 10pt; font-family: “Courier New”;”> doc;<o:p></o:p>

// Open an existing document.

if (File.Exists(filename))

doc = new Document(filename);

else

doc = new Document(defaultfilename);

doc.MailMerge.RemoveEmptyParagraphs = true;

// Fill the fields in the document with user data.

doc.MailMerge.Execute(dt);

// Send the document in Word format to the client browser.

doc.Save(“result.doc”, SaveFormat.Doc, SaveType.OpenInBrowser, Response);

where filename represents the name of the file .



Regards
Atul

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Most likely, you are using old version of Aspose.Words. This issue has been fixed in the latest version of Aspose.Words (8.0.0). You can download this version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

Hello Andrey

Thanks for the support . The font issue is resolved

Regards

Atul