How to represent HTML page as PDF document in ASP.NET

Published: 31st July 2009
Views: N/A
Ask About This Article Print
DuoDimension Software unveils PDF Duo .Net component, a fully-fledged HTML to PDF converter, that offers you an easy way to create/convert PDF documents from HTML web page in your own application or ASP.NET web site.

The main class HtmlToPdf provides all necessary methods and properties to enable multi-purpose customization of the resulting PDF. Here is the simplest example code that shows how to convert HTML to PDF in ASP.NET C# :

[------------------------------------------------------[C# example]-----------]

string file_html = @"http:www.sitecompany.comhtml_pagesconvert.html";
string file_pdf = @"http:www.sitecompany.compdf_docreport.pdf";
try
{
DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
conv.OpenHTML(file_html);
conv.SavePDF(file_pdf);
System.Diagnostics.Process.Start(file_pdf);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
[------------------------------------------------------[C# example]-----------]

Also installing package is provided with fully featured demos written in both C# and Visual Basic. Simple examples with source code help you using the PDF Duo .Net component to successfully convert HTML to PDF. The functionality of the converter cover many particular task:


- Create PDF document using string formed by HTML tags.
- Converting the HTML page from remote address using URL.
- Converting the HTML page represented as string with html tags.
- After converting HTML to PDF open resulting PDF in the browser window without saving it on the hard disk.
- & others.

More information about how to convert HTML to PDF with help of PDF Duo .Net component see on the publisher website
{http://www.duodimension.com/html_pdf_asp.net/component_html_pdf.aspx}

If you have any questions or concerns about component, let us know:
{support@duodimension.com}

P.S. Support team is very friendly & if you want to add some functionality don't stay too long. Contact will give advantages to both sides.

This article is copyright
Source: http://duodimension.articlealley.com/how-to-represent-html-page-as-pdf-document-in-aspnet-1007313.html


Report this article Ask About This Article Print


Loading...
More to Explore
 


Ask a Professional Online Now
27 Experts are Online. Ask a Question, Get an Answer ASAP.
Type your question here...
Optional:
Select...