Report.PrintOut - Printer.Orientation is ignored 
Author Message
 Report.PrintOut - Printer.Orientation is ignored


I want to print reports (landscape and portrait).

Dim Report as
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)

Sat, 07 Jun 2003 17:14:02 GMT  
 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:

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.




>I want to print reports (landscape and portrait).

>Dim Report as
>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)

Mon, 16 Jun 2003 19:43:28 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Setting Printer Orientation of Crystal Reports from VB

2. Report orientation different when sent to different printers.

3. Printer Paper Orientation using the Crystal Report Object Controll in VB

4. Report print orientation changing when printer assigned

5. How to set the orientation of the report in Data Report

6. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

7. PrintOut, Checking if PrintQue to printer is done

8. Change Color mode of Printer for printout of a word document

9. how to use remote printer with DCOM printout

10. Printout is different on different printer

11. Direct printouts to different printers.

12. printout different on every printer?


Powered by phpBB® Forum Software