Font size is now the same whatever the printer resolution.

[GB.REPORT2]
* BUG: Font size is now the same whatever the printer resolution.
This commit is contained in:
gambas 2020-06-11 11:25:42 +02:00
parent e2db8864bc
commit 7ef182f43d

View file

@ -341,6 +341,8 @@ Public Sub Printer_Begin()
ProgressBar1.Pulse = True
lblPrint.Text = ("Layout...")
Paint.FontScale = 25.4 / 72 * Paint.W / $hPrinter.PaperWidth * 72 / 96 * 96 / $hPrinter.Resolution
End
Public Sub Printer_Paginate()
@ -358,7 +360,7 @@ Public Sub Printer_Paginate()
End
Public Sub Printer_Draw()
If View.RangePages.Count = 0 Then
View.Report.Paint($hPrinter.Page)
Else