Problem skipping blank page

Stimulsoft Reports.NET discussion
Post Reply
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Problem skipping blank page

Post 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.
Attachments
1177.SimpleData.xml
(14.74 KiB) Downloaded 282 times
1176.JustMsgs.xml
(1.74 KiB) Downloaded 234 times
1175.NoData.xml
(280 Bytes) Downloaded 245 times
1174.InstallmentBill.xsd
(5.91 KiB) Downloaded 241 times
1173.InstallmentBill.mrt
(98.74 KiB) Downloaded 210 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem skipping blank page

Post 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.
jmiller
Posts: 91
Joined: Mon Sep 20, 2010 12:18 pm

Problem skipping blank page

Post by jmiller »

That seems to be working. Thanks!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Problem skipping blank page

Post by Andrew »

Great!

Thank you.
Post Reply