If you are running multiple invoices in one run, I would enhance on wykabryan's recommendation and stick them in the group footer (report being grouped on invoice number or something similar).
Main Topics
Browse All TopicsWe have a multi-page invoice style report which needs a "terms and conditions" page on the back of each invoice page. I've tried a lot of things, like alternating headers depending on mod of page#, but I can't seem to do it without supressing an actual detail line.
If not possible within Crystal, my other thought was to download the back page to the printers (mostly Xerox Workcenter models) and tell the printer to use that as a back page, like a watermark. I've tried to contact Xerox about this but they say not possible. Although I kind of suspect it is.
Currently we just pre-printing a bunch of back pages and putting them in Tray x, then print our report non-duplex specifying Tray x, which works but is a chore and requires user setup. It is a legal thing so we want to be absolutely sure it prints this way.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
wykabryan: New Page Before / After are greyed out on the page footer sections. And it is has checked New Page After. I believe this is standard for these sections.
One thing I tried was adding a second Detail section, then puting New Page Before but it does not seem to recognize this., i.e. it does not go to new page.
I'm using CRXI - Developer edition)
Hi Doug - if you are grouping on INVOICE, having your standard footer in the group footer would force it for each invoice.
If you choose new page before and new page after on your group footer section, I think you will get the desired effect.
page one
invoice group header -- Invoice 100
invoice detail line -- blah blah blah blah
invoice detail line -- la la la la la
page two
invoice group footer -- disclaimer text
page three
invoice group header -- invoice 101
and so on..
good luck.
Try this idea
Add a second page header section
Put the page header for the ODD pages in PHa
Put the trems and conditions in PHb
Make PHb tall enough to fill a page. You will have to play with this since it is controlled by the margins and the Page Footer size. On a report I built with .25 margins and .25" Page footer the page header B was 7.75" tall
I had the paper set for landscape.
Right click the page header in the left margin
Click SECTION EXPERT
Click the SUPPRESS formula button for Page Header A
PageNumber mod 2 = 0
Click the SUPPRESS formula button for Page Header B
PageNumber mod 2 = 1
mlmcc
Okay, this is a little complex.
1. group by invoice (I presume already done).
2. Create a second group header section.
3. In BOTH the group header section b and the group footer, include the same subreport, make this subreport your back page, and ensure it's big enough to fill the page without allowing a details section on board.
4. In change group, set 'repeat group header on each page'.
5. In section expert, set formulas in the suppression, for group header a (inrepeatedgroupheader) and group header b (not inrepeatedgroupheader)
6. In the section expert, set 'new page after' for the group footer.
The downside is the difficulty of printing the invoice header on the second and third 'pages' (i.e. the 3rd and 5th page of the report).
You could try changing out the suppression in the group header sections to
pagenumber mod 2 = 0
and
pagenumber mod 2 = 1
respectively, and then setting 'reset page number' after in the group footer.
A few years ago, I played with a proof of concept for handling exactly that type of scenario in my software and it works very nicely. I already had the ability to automatically export to pdf and print the pdf. I added one more step in the middle where the code inserted a desired 1-page pdf file (in your case, it's the invoice back page) after each page in the original pdf export, before printing the resulting pdf.
If you can't find a solution within Crystal, you could approach the problem in the same way.
PCIIain - that's an interesting idea but does not seem to work when there is more than one page of details for a group. On those pages, the subreport does not print - instead it seems to print the rest of the details in the header section of what should be the back page... At least, that what I thought until I tweaked the size of the subreport in minute ways. There is a magic size at which the subreport occupies the entirety of the back page and yet the details print properly in the next page.
Still testing but looks good. I don't think it is respecting the "New page after" in the headers and footers properly. I've done so many combos right now I have to verify what exactly works. Best so far is to have a big detail section in the subreport that is just the right size.
No new page after in the headers. Just in the group footer. Remember to reset page number after group footer as well. (Lets you number the pages of the invoice...)
I did a limited test and it seemed to work O.K for me. You DO need to ensure that the detail section is the only usable section of the subreport, and that it's the same size as the printable area.
Please don't give up on doing this just via Crystal. However, in case that option doesn't work for you I just implemented the automated
[Crystal -> PDF Export -> Interweave with BackPage PDF -> Printer]
approach in my software (Visual CUT) and can confirm it works.
If you decide to implement this approach in your own code, keep in mind that you can leverage the ability of pdf files to "clone" content, so speed and final pdf file size are optimized. In my code, I load the BackPage pdf into memory only once and then clone it multiple times into the back pages of the Crystal report pdf export. This makes the process very fast and it doesn't matter how many pages the Crystal export to pdf contains -- the size of the final pdf grows as if we add the BackPage only once... :o)
PCIIain & Doug
Thanks. I've been needing to print a report to employees of varying length and want to have a mailbox number on the back of the back page. This subreport approach works nicely.
To ease the path for anyone else doing this, especially if their new at this like I am, ...
For me I wound up in step 5 choosing:
5. In section expert, set formulas in the suppression, for group header a (inrepeatedgroupheader) and group header b (pagenumber mod 2 = 1)
Then, to get the page numbers to work out:
I was wanting the Page N of M, yet it only showed every other page number, so where it gave me:
1 of 6, 2 of 6, 3 of 6, 4 of 6, 5 of 6, 6 of 6, I was wanting:
1 of 3, nothing, 2 of 3, nothing, 3 of 3, nothing, etc,
so I created a new formula of:
'Page '+ ToText(Roundup (pagenumber / 2) ,0)
+ ' of ' +
ToText(Roundup (Val(Right (PageNofM, Length (PageNofM) - InStr(PageNofM, "of") - 2))/ 2),0)
and I applied a suppression based on "pagenumber mod 2 = 1" (or = 0, I forget) to both the page footer and page header. This way the backs were just pure blank unless there was the mailbox #.
No doubt about getting the subreport just right on the size (with suppressed sub-report page headers and page footers). I took the subreport view to 400% to tweak it.
I could put their mailbox number in the middle of the group footer subreport, and so it only printed once on the back of the very last page for that employee, helping to ensure that the folks doing the stapling get it right.
Overall it worked great for me. Thanks again.
Business Accounts
Answer for Membership
by: wykabryanPosted on 2009-09-03 at 13:07:19ID: 25254409
add another report footer section.
Report Footer A
Report Footer B
Then in Report Footer B add whatever you want.
Then go to Report>Section Expert. In Report Footer A section click the check box New Page After.
This will put Report Footer B always as the last page.