This is a migrated thread and some comments may be shown as answers.
Best way of storing contents of RadPanel using DrawImage
1 Answer 2 Views
This is a migrated thread and some comments may be shown as answers.
Toby
Top achievements
Rank 1
Toby asked on 18 Mar 2019, 12:12 PM

HI,

I have an application which is generating a PDF report using FIxedContentEditor, some of the report must contain a dump of the contents of various RadPanel controls, my current implementation first creates a bitmap of the control using control.DrawToBitmap and then converts this to a BitmapSource and then an ImageSource.

Its not particularly fast and takes around 2.5 seconds for a single 3000x2000 full page image to be added to the PDF, is there a better / faster / more efficient way this can be achieved ?

Regards

Toby

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 21 Mar 2019, 12:03 PM
Hi Toby,

Thank you for your interest in PdfProcessing.

We have a sample project demonstrating the approach of converting WPF and Silverlight UI Elements to PDF format, which can be found in our document processing SDK. However, since the different nature of the Winforms framework, a project demonstrating such scenario for Winforms applications is not available. If you are using RadPanel for Winforms, I cannot propose any other solution than implementing custom conversion between RadPanel for WinForms to PDF format. Despite this approach could provide you with a more performant solution, I must point out to your attention that this would require a lot of custom code to achieve the desired result.

I hope this helps.

Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
Toby
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or