From 003a8be7e1aedaa4fc9ef67b8a871c51d90d15cd Mon Sep 17 00:00:00 2001 From: jesus Date: Wed, 5 Mar 2014 20:18:31 +0000 Subject: [PATCH] LazReport, fix page orientation while direct printing a report designed using virtual printer, issue #25802 git-svn-id: trunk@44360 - --- components/lazreport/source/lr_class.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lazreport/source/lr_class.pas b/components/lazreport/source/lr_class.pas index 94ab16ef65..6a696f13e7 100644 --- a/components/lazreport/source/lr_class.pas +++ b/components/lazreport/source/lr_class.pas @@ -10356,6 +10356,8 @@ begin DebugLnEnter('TfrReport.DoPrintReport: INIT ',[]); DebugPrnInfo('=== INIT'); {$endif} + if Prn.UseVirtualPrinter then + ChangePrinter(Prn.PrinterIndex, Printer.PrinterIndex); Prn.Printer := Printer; pgList := TStringList.Create;