peterdarazs
asked on
VB6 Syntax - Printout in landscape mode
Hi Experts
Just a quick syntax help on code i've adapted from PAQ (re landscape mode) . OrientStructure gives me - "user defined type not defined"
Dim q As Integer
Dim Orient As OrientStructure
Const PORTRAIT = 1
Const LANDSCAPE = 2
Const GETSETPAPERORIENT = 30
''* Start the printer
Printer.Print ""
'* Specify the orientation
Orient.Orientation = LANDSCAPE
'*Printout contents of listbox
For q = 0 To PATPrintLog.ListCount
Printer.Print PATPrintLog.List(q)
Orient.Orientation = LANDSCAPE
Next q
Printer.EndDoc
Just a quick syntax help on code i've adapted from PAQ (re landscape mode) . OrientStructure gives me - "user defined type not defined"
Dim q As Integer
Dim Orient As OrientStructure
Const PORTRAIT = 1
Const LANDSCAPE = 2
Const GETSETPAPERORIENT = 30
''* Start the printer
Printer.Print ""
'* Specify the orientation
Orient.Orientation = LANDSCAPE
'*Printout contents of listbox
For q = 0 To PATPrintLog.ListCount
Printer.Print PATPrintLog.List(q)
Orient.Orientation = LANDSCAPE
Next q
Printer.EndDoc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Peter