Printing Masterdata at the end of the document

edited May 2020 in FastReport VCL

Hi,

I have a masterdata to print but it's for the ending of the document, it's the detail of the VAT (HeadTVA, DataTVA and EndTVA).


How can I on the bottom of the page print it ?


Comments

  • See pictures, I want my bloc at the bottom of the document


    Nobody have idea ?

  • GoranPGoranP Sweden

    Just a spontan idea....

    Whats happens if You put it in the Page Footer, above your ['DocConst...]. Then I think it will be as you wishes..

  • It's not possible.


    For the moment, I calculated the height of each component for having the good result.

  • Hi. How do you fix that?

  • It's not possible.

    For the moment, I calculated the height of each component for having the good result.

    How do you fix?

  • This is my calcul :


    procedure EndLignesOnBeforePrint(Sender: TfrxComponent);

    begin


       if Engine.FreeSpace >= EndLignes.Height + HeadTVA.Height + (DataTVA.Height * DataTVA.DataSet.RecordCount) + EndTVA.Height + PageFooter1.Height + 1 then

       begin

         Engine.CurY := Engine.PageHeight - EndLignes.Height - HeadTVA.Height - (DataTVA.Height * DataTVA.DataSet.RecordCount) - EndTVA.Height - PageFooter1.Height - 1;

       end

     else

       begin

         Engine.NewPage;

         Engine.CurY := Engine.PageHeight - EndLignes.Height - HeadTVA.Height - (DataTVA.Height * DataTVA.DataSet.RecordCount) - EndTVA.Height - PageFooter1.Height - 1;

       end;

    end;

Leave a Comment