Custom Template Export to PDF

This public forum is for user-to-user discussions of ASP.NET Report Maker. Note that this is not support forum.

Custom Template Export to PDF

Postby juvat » Thu Oct 26, 2017 5:00 am

Could you update the ASP.NET Report Maker Demo with an example of how to product an invoice that could be exported as a PDF?
Posts: 68
Joined: Thu Jul 03, 2014 6:09 am

Re: Custom Template Export to PDF

Postby Webmaster » Thu Oct 26, 2017 12:35 pm

By default Export-to-PDF is not enabled for Custom Template because iTextSharp's HTML parser may not be able to read the HTML correctly. However, if your HTML is simple, it does work. You can try the demo project and play with "Sales By Customer 2" which uses Custom Template to show the data line an invoice. You need to customize the template and change:

public bool ExportPdfCustom = false;


public bool ExportPdfCustom = true;

Then generate scripts again and try.
Posts: 10728
Joined: Fri Aug 06, 2004 5:59 pm

Return to General Discussion (ASP.NET Report Maker)