blank page when subreport is no data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freedemi
    New Member
    • Jun 2012
    • 18

    blank page when subreport is no data

    I have a main report which it has two subreports (rpt_pyrovola & rpt_fysiggia). When I run the main report and fill the parameter id with 1, then it gives me a blank page for the subreport(rpt_p yrovola is no data). So, I dont know how can remove the blank page.
    Thank in advance.
    P.S.: I have tried to change the cangrow and canshrink fields:yes but nothing happens.
    Attached Files
  • twinnyfo
    Recognized Expert Moderator Specialist
    • Nov 2011
    • 3662

    #2
    freedemi,

    What is the size of your subreport on your main report? If you establish a set size for your subreport, even if it has not data, that much report space will be taken up.

    What I have done on some of my reports which have subreport data that may or may not be there, I set the height of the subreport to 0 (essentially shrink the height to nothing) and then set the CanGrow property to True, so that the subreport will use up only as much space as it requires (if it has data).

    Try that and let us know what happens.

    Hope this hepps!

    Comment

    • freedemi
      New Member
      • Jun 2012
      • 18

      #3
      Twinnyfo, thanks for your answer. Can you tell me how can set the subreports height to zero, so as try it.

      Comment

      • twinnyfo
        Recognized Expert Moderator Specialist
        • Nov 2011
        • 3662

        #4
        Simply resize it on your main form. Or, when you are editing your main form, click on the Subreport, and set its height to 0 in the properties dialog.

        Comment

        Working...