Conditional Page Processing

39 views
Skip to first unread message

Jonathan Knop

unread,
Oct 15, 2013, 4:29:02 PM10/15/13
to dot-net-...@googlegroups.com
Our old invoices built using vbPrint has a CONTINUED NEXT PAGE line at the bottom of any multipage invoices. Most of our invoices are single page so that called attention to the fact when it was mulitpage.

Before I tell my users they are going to have to adjust to the traditional Page 1 of 3 formatting, I thought I would ask if there were any way I could implement conditional page processing. Show footer text only if it is not the last page.

siberix

unread,
Oct 15, 2013, 8:20:48 PM10/15/13
to dot-net-...@googlegroups.com
Hi Jonathan,

You may try to use a Grid element and add two footers to it. Set the Repeat property of the first footer to true and Repeat property of the second footer to false. Then add a PageNumber element to the first footer. The rest of your content should be inside the grid iteself (Simply add one row and one cell and place all the rest of your content there.)

Siberix.Report.Grid.IGrid grid = section.AddGrid();

Siberix.Report.Grid.IColumn column = grid.AddColumn();
column.Width = new Siberix.Report.RelativeWidth(100);

Siberix.Report.Grid.IFooter footer1 = grid.AddFooter();
footer1.Repeat = true;

Siberix.Report.Grid.IRow row = footer1.AddRow();

Siberix.Report.Grid.ICell cell = row.AddCell();

IPageNumber pn = cell.AddPageNumber();

Siberix.Report.Grid.IFooter footer1 = grid.AddFooter();
footer1.Repeat = false;

row = footer2.AddRow();

cell = row.AddCell();

-- The rest of the content

row = grid.AddRow();

cell = row.AddCell();

cell.AddText(...)
....

Thank You,
Victor
Reply all
Reply to author
Forward
0 new messages