This is a migrated thread and some comments may be shown as answers.

Export to Pdf from Html

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Piyushkumar
Top achievements
Rank 1
Piyushkumar asked on 18 Nov 2010, 05:21 PM
Hi all,
I need help on following.

I am getting Html content from SQL database, then attaching some data to it and then rendering it on a <asp:lable.. server control.
I want my users to be able to export the rendered content to a PDF file.

1.  Which Telerik control will best suit for this need? (i.e. Does telerik have a control which I can use it in place of <asp:Lable that supports export to PDF)
2.  If not, is there any other way to do it?

We have telerik. I don't want to use any other 3rd party components.

Thanks in advance
Piyush

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Nov 2010, 10:53 PM
Hello Piyush,

Straight onto your questions:

1) Unfortunately we do not have separate exporting component.

2) It is possible to use RadGrid's PDF engine by replacing the default export output (HTML code) with your own custom code in the PdfExporting event handler.
protected void RadGrid1_PdfExporting(object sender, GridPdfExportingArgs e)
{
   e.RawHTML = ...;
}

Let me know if you need more information

Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Piyushkumar
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or