Link to home
Start Free TrialLog in
Avatar of onb294
onb294

asked on

PB 6.0: How to change the printer's setup ?

I would like to change the printer's setup by the programming
in PowerBuilder 6.0 (HP LaserJet 1000)

I have found the "PrintSend" function in help:
"PrintSend" sends an arbitrary string of characters to the printer.
"PrintSend" is usually used for sending escape sequences that change the printer's setup.
But Escape Sequences are printer specific... (Oops !)

In reality, I would like to change the default orientation of paper to landscape.

Example:
--------

Long Job

Job = PrintOpen()      //Open a print job
PrintSend(Job,"???")      //Send an escape sequence
...
PrintClose(Job)            //Send the job to the printer or spooler

Thanks in advance, Cedric (:=D
ASKER CERTIFIED SOLUTION
Avatar of joseph_schuler
joseph_schuler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of onb294
onb294

ASKER

Thank you very much for your help...

Cedric   (:=D
HOw to display the Printing preferences using vb?