float height = 80;
float width = (float)(height * height / 100.0);
worksheet["A4"].Text = "%Reports.Image;size:" + width + "," + height; |
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.
Documentation Link: https://help.syncfusion.com/file-formats/xlsio/working-with-template-markers#bind-from-collection-objects-with-imagesRegards,Abirami