• Can Shrink to remove report white space (Access97 SR-2)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Can Shrink to remove report white space (Access97 SR-2)

    • This topic has 7 replies, 4 voices, and was last updated 23 years ago.
    Author
    Topic
    #368836

    I have a Main/Sub report with 2 items that are variable, so that under specific conditions, they should not print on the report and I would like the white space (blank lines) to shrink.

    The first is a label in the Detail section of the report. If the report textbox named TradeIn = 0, the label named TradeInParagraph should not print (this part works fine) and the Detail section should shrink to remove white space.

    The second is contained within a subreport in the main report’s Detail section. It is located in the subreport’s Report Footer. If the subreport’s textbox, named TradeIn = 0, the label and textbox, named CustomerTradeInLabel and CustomerTradeIn should not print (this part works fine) and the subreport’s Report Footer should shrink to remove the white space.

    Although, the items do not print and there are no other controls on these lines, I cannot get the shrinking part correct. Despite setting the Can Shrink Properties for the main report’s Detail section, subreport’s Report Footer section and associated controls (except for labels) to Yes, big blank spaces persist.

    Reading about this hasn’t helped … I’m confused about what I can Shrink and what I cannot Shrink. Are there CanShrink Properties for labels? I need help in getting this right. Thank you.

    Viewing 0 reply threads
    Author
    Replies
    • #578978

      Did you remember to set the CanShrink property for the subreport control on the parent report?

      • #579048

        Yes, Charlotte, I did.
        But the textbox labels do not have a CanShrink property, so those are the only items that I could not set.
        What else can I do? As always, I really appreciate your help.

        • #579055

          You can use code to set the Labels visible property to false when not needed then the report should shrink OK

          HTH

          Peter

          • #579058

            Thank you Bart … I had done that and they are not visible under the correct conditions. So that part is working, but the main and sub reports will still not shrink!

            • #579086

              One other thought then is whether you could set the visible property of the subreport itself to false if it is empty?

        • #579110

          I believe that labels cannot shrink. That is why you do not find a Shrink property on the labels. Change the labels to TextBoxes, set the source to your label text, and set the Shrink property.

          • #579241

            Changing the labels to text boxes on the main report did the trick. Thank you Dan, and everyone else who took the time to offer suggestions. I’m off to try it on the subreport …

    Viewing 0 reply threads
    Reply To: Can Shrink to remove report white space (Access97 SR-2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: