I am attempting to perform mail merges that include QR codes via Words’ MERGEBARCODE field. When the mail merge is performed it correctly results in a DISPLAYBARCODE field. However, I then want that to be resolved to a fixed image. Therefore, I have applied some post processing to the mail merged document to unlink the DISPLAYBARCODE field such that it resolves it to an image using a CustomBarcodeGenerator (as per Generate Custom BarCode for DISPLAYBARCODE|Aspose.Words for .NET).
This works fine in regards to the generation of the barcode image.
However, the WrapType has ended up as WrapType.NONE and I require it to be WrapType.INLINE. So far I have been unable to find a way to reliably set the wrapType on just the Shape of the QR code image.
Any advice on how I can achieve setting the wrapType on just the QR code image and not any other images or Shape objects within the document?
I am currently using Aspose.Words and Asport.Carcode 18.2 for Java.
To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
Your simplified input Word document
Aspose.Words 19.3 generated output document showing the undesired behavior
Your expected document showing the correct output. You can create expected document by using MS Word.
Please also create a simplified standalone Java application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words JAR files in it to reduce the file size.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.