I am using RadControl Q1 2009.
I am using RadEditor.
'RadEditor.ExportToPdf()' is used to open pdf in browser.
How can I save the radeditor content as pdf from serverside.?
Thanks
1 Answer, 1 is accepted
0
Rumen
Telerik team
answered on 13 Aug 2009, 09:54 AM
Hi Hrushikesh,
To save the generated PDF content from RadEditor in Database, you should use the OnExportContent event. This event was implemented in version
2009.1.527 of Telerik.Web.UI.dll and is not supported in the previous versions.
For your convenience I prepared and attached here an example demonstrating how to export the editor's content as PDF on the server using the new OnExportContent event property of RadEditor. The demo is based on the following blog post: How To: Export grid to PDF file and show the result using the window.
Please,
note that there some limitations in the export to pdf functionality: for example to export a TABLE
element, you should add COLGROUP and COL tags for each table row and
set table width. You can do that programmatically using the following
custom content filter: