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

Free Support Forum - aspose.com

Aspose Words - double forward slash turns into triple forward slash after mailmerge

Hello -

I am using aspose and doing mailmerge on a document that has a string containing 2 forward slashes (e.g. 'Header//ProgramName//Department'). After doing a mailmerge the 2 slashes turn into 3 (e.g. 'Header///ProgramName///Department'). I found a similar post after googling: <A href="https://forum.aspose.com/t/60795</A><BR>but as you can see there is no solution there! One more thing: I tried putting in a single slash as a workaround, hoping for a double, but that results in just one slash; anything more always results in an extra slash.</P> <P>Can you please tell me what the status is on this bug and if there is any workaround for it?</P> <P>Thank you very much,<BR>Nancy</P>

Hi Nancy,

Thanks for your inquiry. Perhaps, you’re using an older version of Aspose.Words; as with Aspose.Words v11.8.0, I was unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v11.8.0 and let us know how it goes on your side. I hope, this will help.

Moreover, I have attached a sample Word document, an output Word document and code here for your reference:

Document doc = new

doc.MailMerge.Execute(new string[] { "a" }, new object[] { "http://www.google.com/maps" });


Please let me know if I can be of any further assistance.

Best Regards,

Upgrading did the trick! Thank you very much.

Hi Nancy,

Thanks for your feedback. It is perfect that the new version of Aspose.Words helped in resolving your problem. Please let us know any time you have any further queries. We’re always glad to help you.

Best Regards,