Skip to Content

Issue to suppress report header based on data available in subreport, in Crystal Reports XI

Hi All,
I have the report designed with following sections.

Page Header

Group Header#1

   Group Header#1a

   Group Header#1b

Group Header#2

Group Header#3
Group Header#4

Group Footer#4

Group Footer#3

Group Footer#2

Group Footer#1

    Group Footer #1a

    Group Footer #1b  --> this section contain subreport

    Group Footer #1c

In group footer #1b i put a subreport and the subreport linked with main report by some parameter.

The subreport has only an image control which needs to print, but it totally conditional, means there might change data is not coming for subreport so no image will print. For this I do the following :
On subreport I click on File>>Report Options and check the checkbox "suppress printing if no record" then on main report write click on sub report and selected the format report then in Sub report tab check the checkbox "Suppress Blank Subreport"
Also for the section I open the section expert and check the checkbox "Suppress Blank Section".
By doing above work if there is no data or the subreport is blank then section is suppressed but header is still coming from previous record and the print next record.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 08 at 03:30 PM

    You can only use information from a subreport AFTER the subreport runs. So, you cannot suppress a header when the subreport is in a footer.


    Add comment
    10|10000 characters needed characters exceeded