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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emergency-dynamically select and print reports 1

Status
Not open for further replies.

amoeba102

Programmer
Apr 2, 2002
58
US
I have a report that is a receipt for classes that will run overnight. For each class, after the receipt it should print a requirements page. So the output should be something like:

receipt 1, req 1, req 2, req 3
receipt 2, req 1
receipt 3, req 1, re1 2

etc, with req 1... being any of 50 possible pages. I have all of the logic for selecting req. pages and building the receipt complete. My problem is that I can't seem to come up with a way to make the requirements sheets print after the receipts. Each requirement sheet is a .rpt file. I'm really under the gun on this one, so if anyone can assist I'd really appreciate it.
 
Why not insert these as subreports, each in its own section, turning the suppress attribute of each section on or off based on the logic you already have?

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Hm, that sounds too easy. I had thought about something like this but couldn't figure out where I would put these sections so the pages didn't print before the receipt was finished and I got a new page before the next receipt. I know I'm missing something here.
 
You can place them in the Report Footer Sections (b, c, d, ...) and turn on the 'New Page Before' property for these sections.

hth,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top