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

WebPage elements to PDF

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 19 Dec 2013, 02:23 PM
On the instructions: this.Page.RenderControl (hw) I receive: Script control 'RadGrid' is not a registered script control. Script controls must be registered using RegisterScriptControl () Before calling RegisterScriptDescriptors (). 
How can I fix this?

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Dec 2013, 02:57 PM
Hello Adrian,

You can set RegisterWithScriptManager to false, but in most cases (except in the simplest scenarios) you will face more errors.

Regards,
Daniel
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Adrian
Top achievements
Rank 1
answered on 06 Jan 2014, 02:26 PM
Thanks for the reply.

Now I have the following question:
  I want to Export HTML DIV contents to PDF using iTextSharp and I want to use RenderControl with Asp Panel. 
Asp Panel contains several RadGrid. 
I thought about this solution, because I need to export a section of a asp.net(with CSS) page to PDF.
        Is this a viable solution to export in PDF format or is there a better solution? 

Thanks.  
0
Kostadin
Telerik team
answered on 09 Jan 2014, 12:14 PM
Hello Adrian,

I am afraid that we are not supporting a third part libraries as ITextSharp and I am not sure whether the describes scenario could be achieved. As an alternative solution you could use the built-in PDF export and style the exported file as it is described in the following help article.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Adrian
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Adrian
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or