Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

VB6 and Canon Printer MG6250

$
0
0
Hi
I could not get my Canon MG6250 to print in LandScape so I
tried the sample below and even though i = 2 the printer
just ignores the instruction.
Can anyone help please?
Code:

VB6
Private Sub Command1_Click()
Dim s As String, i As Integer
s = "This Print is in Landscape"

With cdA
      .CancelError = True
      .PrinterDefault = True
      .Orientation = vbPRORLandscape
      i = .Orientation
      .Copies = 1
End With

Printer.Print s

Printer.EndDoc
End Sub


Viewing all articles
Browse latest Browse all 21839

Trending Articles