- Div id page html to pdf
- Post navigation
- Subscribe to RSS
Home Categories. Net Panel. In this article I will explain how to export ASP. HTML Markup. You need to import the following namespaces.
Imports System. Imports iTextSharp. Populating Data for Export. Below is the code to populate the data in ASP. Add "Name" ;. Add "Age" ;. Add "City" ;.
Div id page html to pdf
Add "Country" ;. Add ;. Rows[ "Name" ].
ToString ;. Rows[ "Age" ]. Rows[ "City" ]. Rows[ "Country" ].
Dim dt As New DataTable. Add "Name". Add "Age".
Add "City". Add "Country". Rows 0 "Name". Rows 0 "Age".
Rows 0 "City". Rows 0 "Country".
End If. End Sub. Export ASP. Net Panel to PDF.
Below is the code to export ASP. SetCacheability HttpCacheability.
Subscribe to RSS
NoCache ;. RenderControl hw ;.
A4, 10f, 10f, f, 0f ;. GetInstance pdfDoc, Response. OutputStream ;. Open ;. Parse sr ;.
Close ;. Write pdfDoc ;. End ;. Dim sw As New StringWriter. RenderControl hw. Dim sr As New StringReader sw. A4, Parse sr. Write pdfDoc. View Demo. Download the complete source code in VB. Net and C using the download link provided below.
Related Articles. Add Comments. Thank you for the feedback.
The comment is now awaiting moderation. You will be notified via email when the author replies to your comment. You can add your comment about this article using the form below. Make sure you provide a valid email address else you won't be notified when the author replies to your comment Please note that all comments are moderated and will be deleted if they are Not relavant to the article Spam Advertising campaigns or links to other sites Abusive content.
Add Comment. Message from Author. Hi, This is Mudassar Khan. Thank you for visiting this website.
Need more help? Ask our team at ASPForums.
Net Happy! Please Share and Subscribe to support us. Disclaimer : The code samples and API available at www. You are free to use it for commercial as well as non-commercial use at your own risk, but you cannot use it for posting on blogs or other tutorial websites similar to www. All the code samples and API provided by the authors are solely their creation and neither the author nor the site are responsible if it does not work as intended. I agree to the above terms.
What our readers say. Error Details.