hi,
i want to insert an image into à textboc that contains a tag “<Image:XXX>” and resize the image with the same size of textbox.
aspose.png (2.0 KB)
hi,
i want to insert an image into à textboc that contains a tag “<Image:XXX>” and resize the image with the same size of textbox.
aspose.png (2.0 KB)
We suggest you please use LINQ Reporting Engine to achieve your requirement. Following article explains how to insert an image into textbox and resize the image according to textbox.
Inserting Images Dynamically
If you are using mail merge feature of Aspose.Words, you can implement IFieldMergingCallback interface and set the size of image in IFieldMergingCallback.ImageFieldMerging according to shape size (textbox). Please check the code example shared here:
ImageFieldMergingArgs Class - Aspose.Words for .NET - API Reference