Hi all,
during coding and designing a report using LazReport for my application, where I add Memos to bands in runtime, I recognize that function
TfrPage.RightMargin return bad value. I created a page by the designer. In report xml file RightMargin = 36, but TfrPage.RightMargin return 720.
I think the code from LR_Class.pas file line 7716 is wrong.
function TfrPage.RightMargin: Integer;
begin
with PrnInfo do
begin
if UseMargins then
begin
if Margins.Right = 0 then
Result := Ofx + Pw
else
Result := Pgw - Margins.Right;
end
else Result := Pgw;
end;
end;
Same sutiation is with the function
TfrPage.BottomMargin.
I think there are two buggy functions .