SharonKelly
Technical User
Hello,
I'm using CR 8.5 and have determined that to meet a certain requirement for the report I'm working on, I need to place up to 10 subreport links (these would be links to the same subreport) in order to replicate the report contents a variable number of times (based on a value calculated in the stored proc and available to the report). My question is -- is there a way of suppressing the actual execution of the those extra links if they are not needed?
This report generates a big label (7-1/2 X 3-1/2). In general the report generates just one label each time it is run (which is triggered by events in the application it is embedded in). But based on info I can calculate and send in from the stored proc, I may need to print 2, 3, or as many as 10 labels. There would not be a way to simply rerun the report from the application -- this replication has to occur within the single triggered run of the report.
The only way I can think to do this is to set a variable @NumLabels, and have up to 10 subreport links to the label-generating report. I would suppress the subreport link instances greater than the value of @NumLabels.
But if this doesn't suppress execution, it would seem terribly inefficient to generate 9 unused label sets each time the report is run.
I would love to hear any insights you may have.
Thanks!
Sharon
I'm using CR 8.5 and have determined that to meet a certain requirement for the report I'm working on, I need to place up to 10 subreport links (these would be links to the same subreport) in order to replicate the report contents a variable number of times (based on a value calculated in the stored proc and available to the report). My question is -- is there a way of suppressing the actual execution of the those extra links if they are not needed?
This report generates a big label (7-1/2 X 3-1/2). In general the report generates just one label each time it is run (which is triggered by events in the application it is embedded in). But based on info I can calculate and send in from the stored proc, I may need to print 2, 3, or as many as 10 labels. There would not be a way to simply rerun the report from the application -- this replication has to occur within the single triggered run of the report.
The only way I can think to do this is to set a variable @NumLabels, and have up to 10 subreport links to the label-generating report. I would suppress the subreport link instances greater than the value of @NumLabels.
But if this doesn't suppress execution, it would seem terribly inefficient to generate 9 unused label sets each time the report is run.
I would love to hear any insights you may have.
Thanks!
Sharon