How to hide subreport no data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tasawer
    New Member
    • Aug 2009
    • 106

    How to hide subreport no data

    Hi,

    When I print my report with subreport having no data, there is a big gap between the lines. How can I supress/hide subreport when it has no data.
  • ajalwaysus
    Recognized Expert Contributor
    • Jul 2009
    • 266

    #2
    Try and set the can grow/can shrink to "Yes" then downsize your sub-report a very small slither. When you set the "Can Grow = Yes", the sub-report will grow accordingly to the number of records in it.

    -AJ

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32634

      #3
      Reports have an On No Data event.

      If you know the report will only ever run as a subreport then you can handle the event with code that hides the SubReport control on the main report.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32634

        #4
        Originally posted by RicelandIT
        RicelandIT:
        I posted a reply to this yesterday, but I cannot find it today. So, I hope it's okay to ask it again:
        No. Not really. Your posts have been deleted for the reasons explained in the emails that you have received. It is not ok to ask your question in an existing thread.

        Contributing answers to threads is fine, but if you have a question it needs to be asked in its own, separate, thread. A link to this thread is fine, but asking your question here is not.

        Comment

        Working...