Hi John,
Greetings from Syncfusion.
While applying marker with image using size argument, you need to specify both height and width. When width value is only given, it considers the width value as height’s value. So, we request you to specify the width by using below calculation to achieve your requirement.
Code Example:
float height = 80;
float width = (float)(height * height / 100.0);
worksheet["A4"].Text = "%Reports.Image;size:" + width + "," + height; |
Please refer to below documentation to know about the syntax of Image arguments and its purpose in detail.
Regards,
Abirami
that defeats the purpose of template marker, first I have to find the cell that has the required image marker, then replace its text for height and width.
Why not just place the image there by code instead of using marker.
You should add the auto ratio feature in future release.