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 ?
See pictures, I want my bloc at the bottom of the document
Nobody have idea ?
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?
WelnowskiGJun 2, 2020It'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
Engine.CurY := Engine.PageHeight - EndLignes.Height - HeadTVA.Height - (DataTVA.Height * DataTVA.DataSet.RecordCount) - EndTVA.Height - PageFooter1.Height - 1;
end
else
Engine.NewPage;
end;
Comments
See pictures, I want my bloc at the bottom of the document
Nobody have idea ?
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?
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;