This is a migrated thread and some comments may be shown as answers.

How add an image to PDF export

3 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
leo
Top achievements
Rank 1
leo asked on 09 Jul 2014, 06:05 PM
I would like to add an image (stored in DB) to my PDF export. Now I am exporting PDF using:

grdiView1.MasterTableView.ExportToPdf();

I just want to add to this pdf file an image from the database.

I hope somebody can help me with this...

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Jul 2014, 06:51 AM
Hi,

I am not sure what grdiView1.MasterTableView.ExportToPdf(); is. Our RadGridView does not expose such ExportToPdf() method. 

Generally, you may use the RadDocument for exporting images to pdf with the document viewer control - RadRichTextBox. Please also check this help article on creating a document table in code behind. In order to export an image, you should add it to the RadDocument.  


You can also check this forum thread for an example on how to print an Image.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
leo
Top achievements
Rank 1
answered on 10 Jul 2014, 07:58 AM
I used something like: RadGrid1.MasterTableView.ExportToPdf(); 

For your reference you can also see similar examples here:

http://www.telerik.com/forums/exporttopdf-formatting-ignored

What I just want to do is to add an Image on this pdf export file. Image is not inside the Grid view. It is stored somewhere on the DB. Just a single image which I want to find using a query. (Not location path)
0
Dimitrina
Telerik team
answered on 10 Jul 2014, 08:36 AM
Hi,

The referenced forum is for the product ASP.NET AJAX.

As it comes to Silverlight, you can check the links I suggested. In case you are interested in ASP.NET AJAX, you should post your question in the respective forum.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
leo
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
leo
Top achievements
Rank 1
Share this question
or