Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147141 | Aug 31,2019 03:27 AM UTC | Sep 4,2019 02:11 PM UTC | WinForms | 3 |
![]() |
Tags: XlsIO |
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
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.