How add an image to PDF export

4 posts, 0 answers
  1. leo
    leo avatar
    19 posts
    Member since:
    Mar 2014

    Posted 09 Jul 2014 Link to this post

    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...
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Jul 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. leo
    leo avatar
    19 posts
    Member since:
    Mar 2014

    Posted 10 Jul 2014 Link to this post

    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)
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Jul 2014 Link to this post

    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.
     
Back to Top