We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mailmerge has different font if data is 3 words or more

Hello all,


Attached is a sample of the sections in a template that was causing this issue.

What is happening is that if the mergedata is more than 2 words long, it would appear that after the 2nd word, the styling of the subsequent words follow the styling of the section after the mergefield.

So in the attached file, contents posted below, you will notice that Roy is not grey. This is because the area between the the >> and the , has black as a font. If you place your cursor there, and type something, it will show the different styling. The same for the example below it where the 3rd word will follow the styling of 11 for font size.

It would appear that if the data to merge into the field is longer than 2 words, this issue occurs. Is there a workaround outside of restyling all the templates.

Thank you.

Below becomes: “Bob and
Roy, like many”<o:p></o:p>

«COMPANYNAME», like many

Below becomes: “Bob and Roy”

«COMPANYNAME»

Hi Alfrana,

Thanks for your inquiry. In your document, the font formatting of field codes, field result and paragraph break is different. Please check the color of field codes of first mail merge field. It is black. Press Alt + F9 to check the field codes of a field. Similarly, please check the font size of field codes of second mail merge field.

In your case, we suggest you please clear the formatting of mail merge fields in your template document and format the mail merge fields according to your requirements.

Why does it appear to work normally prior to the third word though?

The templates are years old, and worked fine when it was using Aspose Total for .NET. This started happening in Cloud.

Is there any reason why it’s only the third word (‘Roy’ in the example) that is not in the proper styling? The ‘Bob and’ part follow the correct styling.

Hi Alfrana,

Thanks for your inquiry. We have logged this problem in our issue tracking system as WORDSCLOUD-35. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Could you please share in which old version of Aspose.Words for .NET this issue does not appear?

Hello, unfortunately I do not have access to the server the service is running on. There is a different product that uses a different server whose webservice used the latest version of Total available from around December 2014. Hope that helps.

Thank you.

Hi Alfrana,

Thanks for your feedback. We have tested the scenario using January 2014 and December 2014 releases and have noticed the same issue with these versions as well. We will update you via this forum thread once there is any update available on this issue. We apologize for your inconvenience.

Thanks a bunch!

Hi Alfrana,

Thanks for your patience. It is to inform you that our product team has completed the work on this issue (WORDSCLOUD-35) and has come to a conclusion that this issue and the undesired behavior you're observing is actually not a bug in Aspose.Words. So, we have closed this issue as 'Not a Bug'.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you perform mail merge using MS Word with same three words "Bob and Roy", you will get the same output. See the attached image and document generated by MS Word for your kind reference.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan