This is a migrated thread and some comments may be shown as answers.
Export To PDF with Template
1 Answer 22 Views
This is a migrated thread and some comments may be shown as answers.
John Robin
Top achievements
Rank 1
John Robin asked on 21 Mar 2013, 01:30 AM
Hello,

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

-Robin

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 25 Mar 2013, 04:04 PM
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.

Greetings,
Ivan Petrov
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Asked by
John Robin
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or