Issue with PdfGridImagePosition not working

Hello,

Im new to using the Syncfusion products and am having an issue with PdfGridImagePosition not working. I have tried all the options but the one I want tot use is the 'Fit' option to allow me to keep the aspect ratio of the image. I have tried both landscape and portrait images with no success. Below is the code Im using to insert the image and try to keep its aspect ratio:

PdfGridRow documentInformationGridSignatureRow = documentInformationGrid.Rows.Add();
            documentInformationGridSignatureRow.Cells[0].Value = "Signature";
            documentInformationGridSignatureRow.Cells[1].Value = " ";
            documentInformationGridSignatureRow.Cells[1].Style.BackgroundImage = CreatePDFImage(signature);


documentInformationGridSignatureRow.Height = 60;
            documentInformationGridSignatureRow.Cells[1].ImagePosition= PdfGridImagePosition.Fit;


Hopefully somebody can help because I have run out of options and have no idea what to do. I need it to be the simplest and shortest option if there is a fix.

Many Thanks
Jamie

1 Reply

KC Karthikeyan Chandrasekar Syncfusion Team September 14, 2018 08:49 AM UTC

Hi Jamie, 
The reported issue is not reproduced from our side and it is working as expected. Please find below the sample which we have tried in our side for your reference. If the issue still occurs in your side, please modify the attached sample to reproduce it. So that it will be helpful for us to serve you better. 
 
Regards, 
Karthikeyan 


Loader.
Up arrow icon