Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker
asked on 14 May 2009, 08:02 AM
it seems like Telerik has implemented Export to PDF capabilities in several of its recent control versions (most notably, RadGrid and Rad Editor).. This funcitonality is pretty slick, but what I need most in some of my applications is the ability to generate PDFs from raw HTML content, which won't necessarily reside in a grid or editor. Is there a way to use the existing control APIs in order to generate a pdf file from html (or if necessary, xhtml) strings? If not, does Telerik have plans to expose their PDF generation functionality as a standalone control... something like the AjaxManager or RadSpell?
6 Answers, 1 is accepted
0
Hello Albert Shenker,
The grid's pdf export functionality has not been isolated on its own and for the time being it is not planned to be exposed in a separate control. The only way you can make use of it is to employ a not so pretty work-around: call the grid's master table view's ExportToPdf method, capture the OnPdfExporting event and replace the contents of the e.RawHtml string object.
I hope this information helps.
Kind regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The grid's pdf export functionality has not been isolated on its own and for the time being it is not planned to be exposed in a separate control. The only way you can make use of it is to employ a not so pretty work-around: call the grid's master table view's ExportToPdf method, capture the OnPdfExporting event and replace the contents of the e.RawHtml string object.
I hope this information helps.
Kind regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 14 May 2009, 02:36 PM
Can you export to pdf from a hidden grid? Also, it seems like Rad Editor might be a better approach since you don't have to bind the control to data. You can simply set the controls contenthtml property (or something along those lines). There would be the same necessity to do it with a hidden editor, though.
0
Steve Y
Top achievements
Rank 2
answered on 14 May 2009, 03:52 PM
Hi Albert,
I too would really like to see a generic PDF api to convert (x)html to pdf etc available from Telerik.
Unfortunately I could not wait as I needed the functionality in my application now. I didn't just want pdf from a grid or from the editor. I needed the flexibility of converting any generated html to pdf. I decided to use a third party converter and chose winnovative (www.winnovative-software.com) as my supplier. I've been happy with the product and have not had any issues with converting either html strings or a web page (I use this method for printing reports i.e. I server execute a report page and convert the page to pdf). Of course, their support is not to the level of what I'm used to with Telerik but they normally respond within a day and I've not really experienced any bugs - just questions which they've answered reasonably well.
I don't know what your requirements are so I cannot say if it will do what you want, but I use the product and it has done what I needed it to do so far. it's under active improvement/development which was important to me - I didn't want a product that didn't seem to be going anywhere or from developers that had lost interest (there are a number of pdf converter products in that category). Plus it has full function free trial so you can take it our for a spin and see if you like it..
Telerik. I hope you don't mind me mentioning it in the forum but as you don't really offer this level of functionality I thought it would be fine.
Regards, Steve
I too would really like to see a generic PDF api to convert (x)html to pdf etc available from Telerik.
Unfortunately I could not wait as I needed the functionality in my application now. I didn't just want pdf from a grid or from the editor. I needed the flexibility of converting any generated html to pdf. I decided to use a third party converter and chose winnovative (www.winnovative-software.com) as my supplier. I've been happy with the product and have not had any issues with converting either html strings or a web page (I use this method for printing reports i.e. I server execute a report page and convert the page to pdf). Of course, their support is not to the level of what I'm used to with Telerik but they normally respond within a day and I've not really experienced any bugs - just questions which they've answered reasonably well.
I don't know what your requirements are so I cannot say if it will do what you want, but I use the product and it has done what I needed it to do so far. it's under active improvement/development which was important to me - I didn't want a product that didn't seem to be going anywhere or from developers that had lost interest (there are a number of pdf converter products in that category). Plus it has full function free trial so you can take it our for a spin and see if you like it..
Telerik. I hope you don't mind me mentioning it in the forum but as you don't really offer this level of functionality I thought it would be fine.
Regards, Steve
0
@Albert:
RadGrid does not allow export to pdf when it is hidden. However, you can achieve that with RadEditor by setting its Content property and calling its ExportToPdf method.
@Steven:
There is no problem at all with your post. If using the third party HTML to PDF conversion solution offered by Winnovative Software Solutions suits your needs, feel free to integrate it in your projects. Indeed currently we do not offer generic PDF API for porting (x)html to pdf.
Best regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
RadGrid does not allow export to pdf when it is hidden. However, you can achieve that with RadEditor by setting its Content property and calling its ExportToPdf method.
@Steven:
There is no problem at all with your post. If using the third party HTML to PDF conversion solution offered by Winnovative Software Solutions suits your needs, feel free to integrate it in your projects. Indeed currently we do not offer generic PDF API for porting (x)html to pdf.
Best regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 18 May 2009, 02:46 PM
So you can export the content of an editor if the editor is hidden?
0
Hello Albert Shenker,
Indeed, this is possible. Please, try it and see if it helps with your scenario.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Indeed, this is possible. Please, try it and see if it helps with your scenario.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.