Craig Smesny wrote:
How do you issue PJL codes in VB to change a printer to staple mode? I
have tried using printer.print but this doesn't work, it just prints out
on the page.
strCom = "\H1B\L%-12345X@PJL"
Printer.Print strCom
Printer.Print "@PJL JOB"
Printer.Print "@PJL SET FINISH=STAPLE"
Printer.Print "@PJL ENTER LANGUAGE=PCL"
<Report>
Printer.Print strCom
Printer.Print "@PJL EOJ"
Printer.Print "@PJL RESET"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Since noone has answered.....and I don't know.....I'll take a stab at your
problem.....maybe get you thinking about alternatives....
When you design the report, can you create the report for a specific printer
and in staple mode (via PrinterSettings in Access?. If not, maybe create a
printer via Control Panel where the properties are set to staple mode and
call that printer in the report? Maybe before you present the report, the
form has an option to print stapled or unstapled and if stapled, open that
report, if not the other report.
Check out
http://www.mvps.org and goto Dev's site. I think there are a
couple of APIs on printers..maybe PrtDev.....do a search on printers. Maybe
something there will click.
Look for a message in this newsgroup by Albert D Kallal to get to his
website. He has a neat method for updating the current printer.