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

Passing value from subreport to higher section

Status
Not open for further replies.

shera4111

Programmer
Apr 12, 2006
27
CA
Hi all,

I'm building a report that is pretty much a bunch of subreports one after the other, with an agenda style list at the start. What I'd like to do is note on that first page (the agenda), which page of the report the subreports start on. For example:

Agenda:
1) review Report1 - see page 2
2) review Report2 - see page 6

Kicker, for those who know about passing shared variables b/w subreports and main, is the fact that the value of the shared variable (in this case the page number), must appear BEFORE the subreport, because the agenda must be the first page.

Basically the report is set up like this:
ReportHeader a
-Agenda listing
ReportHeader b
-SubReport1
ReportHeader c
-SubReport2

I thought I could just put the two subreports in sections above RHa (above the agenda) and then supress them. But it seems Crystal doesn't evaluate supressed subreports.

Anyone know if there's a way to do this? Alternate ways are welcome, if there's no way to trick Crystal into evaluating a shared variable in a higher section...

Thx,
shera4111
 
There's a somewhat awkward method described at:
If you are willing to accept output as a Crystal export to PDF, consider a 3rd-party solution. See list of 3rd-party tools at: My "Visual CUT" software can add a table of contents (and re-number the pages to adjust for the fact that the Table of Contents occupies one or more pages) to pdf exports from Crystal.

Cheers,
- Ido

Visual CUT & 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