Page 1 of 1

Problem skipping blank page

Posted: Fri Jul 22, 2011 6:06 am
by jmiller
I have a report with 3 different page types. I want the last 2 page types to always show. They each have a header and optional data. I still want these headers to show if there is no data. There is no problem with these 2 page types. The problem is with the very first page. There is no header. It is a data band that takes up the entire page. If there is no data for this data band I don't want the page shown. I've tried several things but could not get the report to come out the way I want it. I've including the mrt along, an xsd, and 3 different xml data files. One data file (NoData.xml) has no data and therefore should only show only pages 2 and 3 but headers only (when run it shows blank page 1). The second data file (JustMsgs.xml) has only data for page 3 - it should show only pages 2 and 3, but a blank page 1 is still shown. The third data file (SimpleData.xml) has data and should show all 3 pages.

Problem skipping blank page

Posted: Mon Jul 25, 2011 7:48 am
by Ivan
Hello,

Please write the following script in the BeforePrint event of the Page1:

Code: Select all

Page1.Enabled = LoanData.Count > 0;
Thank you.

Problem skipping blank page

Posted: Mon Jul 25, 2011 1:07 pm
by jmiller
That seems to be working. Thanks!

Problem skipping blank page

Posted: Mon Jul 25, 2011 10:21 pm
by Andrew
Great!

Thank you.