How to avoid empty space in footer band

Leo BidiLeo Bidi Montevideo, Uruguay
edited 6:01PM in FastReport VCL
Hi, I have 2 memoview in a footer band.

I need to print them or not according the user, but also avoid the empty space that prints when the memo are not printed.

How can I do this ?

Thank you so much !!

Comments

  • PolomintPolomint Australia
    edited 6:01PM
    Have you tried adding a BeforePrint event, and setting PrintBand to False?

    Cheers, Paul
  • Leo BidiLeo Bidi Montevideo, Uruguay
    edited 6:01PM
    Oh, no, I havent tried this. Will try..

    And how can I find in that event in with copy am I ? I need to hide this empty space only in the second copy of my report.

    Thanks so much.
  • gpigpi
    edited 6:01PM
    Use for example:
    procedure Footer1OnBeforePrint(Sender: TfrxComponent);
    begin
      Memo3.Visible := False;
      Footer1.Height := 20;                                                                    
    end;
    
  • Leo BidiLeo Bidi Montevideo, Uruguay
    edited 6:01PM
    Hi gpi.
    Thanks for your answer but that code did not work.

    Any idea that else I could try ??

    Many thanks.
  • gpigpi
    edited 6:01PM
    No any idea, it should work. Create small demo project based on standart Delphi's components and send it to support@fast-report.com

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.