By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,500 Members | 830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,500 IT Pros & Developers. It's quick & easy.

PJL

P: n/a

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!
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.