I'm using CR 2008 (CR Developer v12.2.0.290) with a SQL Server 2000 db. I have a very complex report with 28 subreports and 31 detail sections. Before you wonder how crazy I am, let me explain. This is a manufacturing-type work order and each section and most of the subreports represent a different part of our process and those parts can have multiple items in them (or none at all), all linking back to a main job number. There are 21 different tables involved in the whole report, some in the main report, some in the subreports. The report, as a whole, is working very well. The problem lies in suppressing the different subreport detail sections if they aren't needed for a particular job. There is no need to print 5 pages if there is only 1 or 2 pages that have useful information and the rest is blank grids.
At first, I thought I'd add all the tables into the main report and set up variables to determine which of the subreports/sections are used and conditionally suppressing the sections using those variables. That created a linking nightmare in the main report.
Then I thought about setting a shared variable in each of the subreports, but realized that, by the time that variable is evaluated, it's too late for use in the main report.
My next thought is to create a bunch of little, suppressed subreports at the top of the report to set up shared variables that will filter down throughout the report. I'm concerned with lagtime running the report this way.
Does anyone have any suggestions?
Thanks!
Lorraine
At first, I thought I'd add all the tables into the main report and set up variables to determine which of the subreports/sections are used and conditionally suppressing the sections using those variables. That created a linking nightmare in the main report.
Then I thought about setting a shared variable in each of the subreports, but realized that, by the time that variable is evaluated, it's too late for use in the main report.
My next thought is to create a bunch of little, suppressed subreports at the top of the report to set up shared variables that will filter down throughout the report. I'm concerned with lagtime running the report this way.
Does anyone have any suggestions?
Thanks!
Lorraine