Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot get a sub-report to print without the headers and footers of the main report

howieb4

Technical User
Apr 29, 2025
1
Hi. First post and I hope I doing this correct.
I have a Crystal Report Purchase Order that is controlled by Accountable Software's Forms Printer within Microsoft Great Plains. The report prints great as is, but I have been asked to add four pages of Terms & Conditions to print after the report. I've looked online for a solution, and many of the solutions come from your site, but I cannot get it to work. I created a subreport and added it to the footer of the report, and it does print after the PO but it prints with both the header and footer of the PO. I just want the four pages to print basically on four blank pages. I don't know what I am doing wrong, but I wouldn't think this would be so difficult.

Thanks in advance
HB
 
Just in case you didn't, have you tried putting the sub-report in the Report Footer vs a Group Footer?

I'm assuming that the headers have been configured to print/repeat on all pages.

One work around might be to put a global variable in the report header something like:

whileprintingrecords;
global BooleanVar suppressPrinting := false;
"";

Then, in the second that contains your page headings, set up conditional formatting so print or suppress them with:
whileprintingrecords;
global BooleanVar suppressPrinting;
suppressPrinting;

Finally, in the Report Footer, add a formula:
whileprintingrecords;
global BooleanVar suppressPrinting := true;
"";

It's all a little more awkward but it should give you the ability to turn off the header sections from printing when you've reached the end of the report.
 

Part and Inventory Search

Sponsor

Back
Top