public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
conv.BasePath = MapPath("~/");
conv.PageFormat = DuoDimension.ePageFormat.A4;
conv.PageOrientation = DuoDimension.ePageOrientation.Portrait;
conv.OpenHTML(@"
<table width='100%'>
<tr>
<td width='19%'>[b]Last update:[/b]</td>
<td width='81%'> 23 Jun 2009 - 01:22</td>
</tr>
...
</table>
");
conv.SavePDF(MapPath("~/pdf/") + "report.pdf");
preport.InnerText = "The report has been created.";
}
}