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

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



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:
    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



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