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

02/08/2010

DuoDimension Software reveals PDF Duo. NET, a fully-fledged HTML Converter PDF, which offers an easy way to create / convert PDF documents to HTML Web page in your 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 the conversion from HTML to PDF produced Open PDF in the browser window without saving to disk.
- & others.
More information on how to convert HTML to PDF with the help of PDF Duo. Net component see the website of the issuer
http://www.duodimension.com/html_pdf_asp.net/component_h ...
If you have any questions or concerns about component, let us know:
support@duodimension.com
Private Secretary to support team is very friendly

Posted in: asp.net| Tags: Software NET page web document asp html pdf duo duodimension

Generate PDF from HTML with C# in ASP.NET

01/07/2010

PDF Duo .Net is a converting component for use in ASP.NET (VB, C# etc.) and enables toconvert HTML to PDF. The main class HtmlToPdf provides several methods and properties to enable multi-purpose customization of the resulting PDF. Main functions allow to convert HTML represented as a File, Page from Url address, Stream or as a String.

Developers can easily invoke the converting component in their own application or website projects on base of ASP.NET. To deploy the PDF Duo .Net component you will need only three lines of code. 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.

I PDFDuo used NET.dll (version 2.3) in my project, which is very useful. First you need to convert the contents of your ASPX to HTML and then converted that HTML content into a PDF file or a different way, which I use to create a simple HTML string and then convert it.

See below C# code:
using System;
using System.Web;
using System.Web.UI;
using System.IO;
using DuoDimension;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string html = "<table width='240'>" +
"<tr style='background-color:#00AAFF'><td width='50%'>Product</td><td width='25%'>Quantity</td><td>Cost</td></tr>" +
"<tr><td>Product Name 1</td><td>5</td><td>$100</td></tr>" +
"<tr><td>Product Name 2</td><td>15</td><td>$300</td></tr>" +
"<tr><td>Product Name 3</td><td>55</td><td>$500</td></tr>" +
"</table>";
string pdf = "pdf_file.pdf";
DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
conv.PageInfo.PageFormat = ePageFormat.A4;
conv.PdfDocumentInfo.Title = "Generate PDF from HTML source";
conv.Header = "<br><i>HTML table Example</i>";
try
{
conv.OpenHTML(html);
conv.SavePDF(MapPath("~/Reports/") + pdf);
}
catch (Exception ex)
{
throw ex;
}
}
}
Adobe's PDF format is the most widely accepted file formats, in the current use. Most users and customers expect you to write software that will be able to generate and process PDF files. Unfortunately, Adobe does not provide a free SDK, you can download and use, you have to pay licensing API.

Static creating PDF files is very simple. Applications such as OpenOffice.org Writer, with which the user options export to a word processing document as a PDF file. Users can also enable utilities to find them,

But what about dynamic PDF generation? Some programs need to be able to write out PDF files. PDF Duo .NET alleviates this problem. It will give you the ability to add PDF functionality to your applications. Using PDF Duo .NET, you can create PDF by converting HTML string or file, so you can deliver the functionality your users expect.

That's how you have the PDF from the option to convert to another data source and generates an HTML or, HTML and your ASPX is to convert, PDF to first. Because, PDF duo. NET components as possible to clear it must work html format. It does not support ASP: Control and runat = server tags so far. Your table, H1, H2 in the paragraph styleshhet, with all the necessary tags for style sheets and other PDF can be fully applied.

PDF Duo .NET is absolutely independent, doesn't require any additional components and really appropriate for ASP.NET websites. The component is written entirely in C# for the .NET platform. PDF Duo .NET is a library that allows you to generate (convert) PDF documents from HTML web page.

For more information about the component please visit the product page:
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 }

Posted in: asp.net| Tags: html pdf generate with

Do you want to add functionality to convert HTML to PDF to your dynamic ASP.Net Application?

12/21/2009

DuoDimension software provides PDF component duo. Net 2.2 that helps you to convert HTML to PDF, your dynamic ASP.Net application.

The new version of PDF-Duo. NET component presented by DuoDimension software developer is a professional server-based component based on ASP.NET allows you to convert HTML to PDF. The component is really appropriate for Web applications

The component can be used in any ASP.NET languages (VB.Net, C# etc.) PDF Duo .Net has C# classes with easy-to-operate methods to convert HTML to PDF as a file or as a stream. So developer after conversion of HTML to PDF can write resulting PDF to the window of Internet Browser directly.

PDF Duo .Net component Key Features:

1. Conversion directions: HTML to PDF, XHTML to PDF, TXT to PDF.
2. HTML file can include formatting styles CSS those will be correct converted to PDF.
3. Makes the best use of invalid or bad formed HTML file.
4. Strict copying of HTML file formatting to PDF file in your own ASP.NET project.
5. Allows to convert either from HTML file or from HTML string stream.
6. Takes a Web Site URL instead of HTML file in order to convert to PDF.
7. Not require the installation, Microsoft Office (R) and is, Adobe Acrobat (R) for support. NET 2.0,. NET 3.0 to. NET 3.5 in

Quality of Converting HTML to PDF

PDF format duo. NET components clever conversion tables, style, graphics, images, hyperlinks, fonts, HTML to PDF, etc.

PDF format duo. NET component to help convert HTML report, HTML file, your application's HTML formatted text to PDF solid copy. This is a very fast to use components written in any ASP.NET Web or Windows applications, can be converted into one or a group of PDF format, HTML / XHTML to PDF files.

The component of HTML to PDF converting is very easy to use and is provided with 2 fully featured demos written in both C# and Visual Basic. They will help you to create your own ASP.NET web applications.
How to convert HTML to PDF in ASP.NET?
Installing package contains source code of demo program. Simple examples with source code help you using the PDF Duo .Net component to successfully convert HTML to PDF. There are examples with C# and VB source code.

It is really work! Just try it!

For more information about the component please visit the product page:
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


Posted in: asp.net| Tags: Software NET Application Component asp html functionality pdf duo duodimension

Hot Posts

Latest posts

Tags

Others

Sponsors

asp.net interview questions