
Report.PrintOut - Printer.Orientation is ignored
You should set the orientation property in the report object:
report.PaperOrientation = <orientation>
Withing Craxdrt, there are 3 constants defined:
crDefaultPaperOrientation
crLandscape
crPortrait
The paperOrientation property of the report overrules the setting in the
printer. You do not need to set the orientation property on the printer
object. Crystal will do that for you.
Fred
Quote:
>Hi,
>I want to print reports (landscape and portrait).
>Dim Report as Craxdrt.report
>Set Report = Report.dsr
>Set Printer = Printers(intSelectedPrinter)
>Printer.Orientation = Report.PaperOrientation
>Report.SelectPrinter Printer.DriverName, Printer.DeviceName, Printer.Port
>Report.PrintOut False, intNumber, blnSort
>But the Printer Orientation is ignored.(default paper-will be printed)
>What do I have to do to solve this problem?
>Joachim (Germany)
>VB6,CR8