Export To PDF with Template

2 posts, 0 answers
  1. John Robin
    John Robin avatar
    6 posts
    Member since:
    Apr 2012

    Posted 20 Mar 2013 Link to this post


    Im am exporting a Gridview to PDF (sampleexport.jpg)

    but i want it to look like this format (Template.jpg)

    is it possible to do it?

    Thank you in advance for your support

  2. Ivan Petrov
    Ivan Petrov avatar
    718 posts

    Posted 25 Mar 2013 Link to this post

    Hello Robin,

    Thank you for writing.

    The export mechanism of RadGridView does not support exporting using templates. You can achieve this by using the printing functionality RadControls offer and redirecting the print job to a driver that will produce a pdf file rather than sending it to a real printer. I have attached an example project which demonstrates how you can customize the printing. There is also code showing how to use a pdf print driver to directly print to a file instead of showing print dialogs.

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Ivan Petrov
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top