RadPrintDocument to PDF

1 Answer 70 Views
General Discussions
George C.
Top achievements
Rank 2
Iron
Veteran
George C. asked on 23 Aug 2021, 07:04 AM

Greetings,

Is it possible to print a RadPrintDocument as PDF ?

* I know there are some virtual PDF printers that can be installed on a machine and then be chosen as a printer when printing a RadPrintDocument. But I need to use Telerik's components  (or other components) that can print a RadPrintDocument as PDF directly.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Aug 2021, 12:17 PM
Hello, George,

Each control has its own printing functionality and handles this differently. RadPrintDocument only exposes the printer options and does not have any rendering functionality. In addition, we are using properties of the UI elements to print the document and create print preview dialog, and this requires the layout of the control to be loaded. 

Most of the controls from the Telerik UI for WinForms suite offers export functionality some of which also offer exporting to pdf, e.g. RadGridView:
https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/export-to-pdf This is more appropriate for generating pdf documents.

For a more general approach, printing into a pdf file (e.g. PrimoPDF) would be a good option for achieving your custom requirement. 

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
George C.
Top achievements
Rank 2
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or