Report Height

How could i know the exact report height before printing

I have a Receipt Report, Dynamic, and Visible/Invisible Childs
How to know the exact report height before printing

I have tried the OnBeforePrint of the Page, NOT working

Comments

  • edited 1:54AM
    Hi,

    i think u where on the right track.
    if u try this u should get your page height:

    procedure Page1OnBeforePrint(Sender: TfrxComponent);
    var
    PageHeight : String;
    begin
    PageHeight := FloatToStr(Page1.PaperHeight);
    ShowMessage('Page Height in mm is: ' +PageHeight);
    end;

    Let me know if this works for u...
    Note; the returt height seems to be in mm (in my case).
  • edited August 2016
    Hi,

    i think u where on the right track.
    if u try this u should get your page height:

    procedure Page1OnBeforePrint(Sender: TfrxComponent);
    var
    PageHeight : String;
    begin
    PageHeight := FloatToStr(Page1.PaperHeight);
    ShowMessage('Page Height in mm is: ' +PageHeight);
    end;

    Let me know if this works for u...
    Note; the returt height seems to be in mm (in my case).



    I know the Report height before printing, but that is the height at design time,
    when load the report, and assign the data set (and fill rows), View or hide childs. so the TOP of objects changed, for example, if i hide an object in the middle of the report, the next object will shift up, so the TOP of the object (which shifts up) will be changed.
    The problem is, i can not find an event which returns back the TOP of the last object in the report just (on before Print). it always returns the TOP of the object at design time.

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.