We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Image in PdfGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

118929 Apr 24,2015 03:05 PM UTC May 4,2015 12:36 PM UTC Xamarin.Forms 3
loading
Tags: PDF
Ivan
Asked On April 24, 2015 03:05 PM UTC

Hi,
Is it possibile print/draw images in a PdfGrid?

I am able to print only string!


Thanks,
Ivan

Praveenkumar H [Syncfusion]
Replied On April 27, 2015 09:56 AM UTC

Hi Ivan,

Thank you for using syncfusion products,

We can set the image as a background to the Pdf Grid cell.

Please refer the below link for more information.

https://www.syncfusion.com/kb/4256/how-to-insert-an-image-in-the-pdfgrid

Please let us know if you need further assistance.

With Regards,
Praveen

Ivan
Replied On April 30, 2015 07:45 AM UTC

Thanks for the replay!
Is this the only way to insert an image (logo) into a pdfgrid?
I tried, but the result is a distorted image. 
I can't fit the background image in the right way.
How can I do this?

Thanks
Ivan

KarthikeyanC [Syncfusion]
Replied On May 4, 2015 12:36 PM UTC

Hi Ivan,
Thank you for contacting Syncfusion Support.

We can position the picture in Background by using the PdfGridImagePosition property. Please refer the attached code snippet.
Code Snippet:

pdfGrid.Rows[0].Cells[0].Style.BackgroundImage = new PdfBitmap(imagePath);

pdfGrid.Rows[0].Cells[0].ImagePosition = PdfGridImagePosition.Center;

Regards,
Karthikeyan.C


CONFIRMATION

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.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;