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
Problem skipping blank page
- 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
Problem skipping blank page
Hello,
Please write the following script in the BeforePrint event of the Page1:
Thank you.
Please write the following script in the BeforePrint event of the Page1:
Code: Select all
Page1.Enabled = LoanData.Count > 0;
Problem skipping blank page
That seems to be working. Thanks!
Problem skipping blank page
Great!
Thank you.
Thank you.