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

Hiding section subreports

edited October 2005 in Subreports
The main page of my report has a section style subreport in the Title band, and a section style subreort in the detail band.
Under certain circumstances, I need to hide the title band sub report (depends on end user). If I set this sub report to invisible, the first page of the report is a blank page, rather than not showing at all. If I set the title band to invisible, I get the same result.

Is there some way of preventing this? Is this peculiar to the main report, as visibility seems to work correctly for other areas of the report?

Cheers

Will

Comments

  • edited October 2005

    For a report that consists of multiple sections, try the following
    configuration

    1. Create a main report and remove the header/footer (and all other bands),
    so that there is only the detail band.

    2. Place subreports in the detail band and set PrintBehavior to pbSection
    for each.

    3. Use the detail band BeforePrint event to set subreport visibility.

    Example:

    main
    detail
    subreport - section1
    subreport - section2




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2005
    Nard

    Many thanks for that. It took almost two seconds to implement, and now works a treat! I just moved the section subreports from the title to the detail, deleted the title and Bob's your uncle!

    Cheers

    Will


    For a report that consists of multiple sections, try the following
    configuration

    1. Create a main report and remove the header/footer (and all other bands),
    so that there is only the detail band.

    2. Place subreports in the detail band and set PrintBehavior to pbSection
    for each.

    3. Use the detail band BeforePrint event to set subreport visibility.

    Example:

    main
    detail
    subreport - section1
    subreport - section2




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


This discussion has been closed.