Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Subreport De-Activation

edited October 2001 in General
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

Comments

  • edited October 2001
    You can set the subreport visible property and it won't generate.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    > You can set the subreport visible property and it won't generate.

    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
  • edited October 2001
    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


This discussion has been closed.