LazReport, store used paper size

git-svn-id: trunk@40474 -
This commit is contained in:
jesus 2013-03-04 05:59:26 +00:00
parent faaf316280
commit bf7a97b65f

View File

@ -801,11 +801,14 @@ begin
{$Endif}
try
PaperWidth:=fPrinter.PageWidth;
PaperHeight:=fPrinter.PageHeight;
finally
// update paper size in std pt units
PaperWidth := round(fPrinter.PaperSize.Width * 72 / fPrinter.XDPI);
PaperHeight := round(fPrinter.PaperSize.Height * 72 / fPrinter.YDPI);
except
PaperWidth:=1;
PaperHeight:=1;
// let it as it was ....
raise
end;
end;
{$ifdef DbgPrinter}