Demonstration of PDF Generator in ASP.NET Web Page

Developed by WESNet Designs
www.wesnetdesigns.com

Report 1 has its entire definition including the datasource's connection string (read from the <AppSettings> node of Web.Config) and the SQL query configured in the XML report definition file. The report is generated from only one line of code:

Dim Report1 As New WESNet.PDF.PDFGenerator("Report 1.xml")

     View Report 1 Definition

Report 2 generates the same report but generates its datasource in the VB code:

     View Report 2 Definition

Report 3A creates a multipage report using iTextSharps automatic table pagination and header regeneration. The footer also includes the [CurrentPage] token:

     View Report 3A Definition

Report 3B enables the PDFGrid's own paging with ten records per page and shows a pager row at the bottom of each page's table:

     View Report 3B Definition

Report 4 demonstrates use of the OnDataBound and OnItemCreated events to combine the user's profile Region and Country values and insert the resulting value into the second column (Location) and to keep a count of the number of records processed and insert it into the footer. The values of the Created Date column are formatted by use of the DataFormatString property.

     View Report 4 Definition