Subreport De-Activation
Hi
I have a master report with a few subreports on it. Is it possible to
disable (so that the subreports will not cause any overhead by being
generated) some of the subreports. Tom replied to me some time ago with the
following suggestion:
'You can create a new driver report, which contains only the requested
reports. Save each of the subreports to file, then load the report
definitions into the subreports...'
The problem I have with this sollution is that the subreports must be
shipped as seperate files with the application - if I understand the
suggestion correctly. Isn't there an easier way - like for instance
disconnecting the Pipelines for the Subreports - what will RB do internally
if this is done?
Thank You
Rico Koegelenberg
I have a master report with a few subreports on it. Is it possible to
disable (so that the subreports will not cause any overhead by being
generated) some of the subreports. Tom replied to me some time ago with the
following suggestion:
'You can create a new driver report, which contains only the requested
reports. Save each of the subreports to file, then load the report
definitions into the subreports...'
The problem I have with this sollution is that the subreports must be
shipped as seperate files with the application - if I understand the
suggestion correctly. Isn't there an easier way - like for instance
disconnecting the Pipelines for the Subreports - what will RB do internally
if this is done?
Thank You
Rico Koegelenberg
This discussion has been closed.
Comments
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
The DataSets connected to the DBPipelines of the Subreports are still being
Opened. Thus there will still be overhead that you don't want. It would be
nice if there can be a 'Enable' property for subreports where you can FULLLY
disable or enable a Subreport.
Thanks
Rico
As a workaround I would set TppDBPipeline.OpenDataSource=false. Then in the
TppDBPipeline.OnOpen I would set the following code:
if then
begin
end;
Pierre