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

Free Support Forum - aspose.com

MergeField Replace

Hi,

Previously we used Aspose.words with version 9.5.0.0 .we used the below code to place the image in word document.

Maindocument.MailMerge.FieldMergingCallback = new HandleMergeImageField();

Maindocument.MailMerge.Execute(new string[] { fieldName }, new object[] { myByteArray });

but now we are using Aspose.words with version 10.8.0.0.in generated word document along with image mergefield also displaying.please give the suggestion to replace the image with current Aspose.words with version 10.8.0.0.

Thanks,

Santhosh.N

Hi Santhosh,


Thanks for your inquiry. Sure, you can insert images in your template Word document by using the code suggested in the following article:
http://www.aspose.com/docs/display/wordsnet/How+to++Insert+Images+from+a+Database

I hope, this will help.

Best Regards,

Hi,

Yes this code had worked properly with Aspose.words(9.5.0.0).but with 10.8.0.0 we are again getting image merge field along with image(refer the previous attachment : variable is GClkSignature).how to remove that variable.please help me out how to solve this issue.

Thanks,

Santhosh.N

Hi Santhosh,


Thanks for your inquiry.

This was a bug that was accidently introduced around the 10.8.0 version of Aspose.Words. You can see further details about it on this thread.

The issue was fixed in Aspose.Words 11.0.0 so please upgrade to that version to fix this issue.

Thanks,