Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passthrough PCL Command

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
After researching my issue I believe the following is what I need to do:
You can call the Window's API function Escape() with the PASSTHROUGH
command. This will send raw data directly to the driver. Good luck.

I am trying to specify which tray the TPrinter object should print to. Unfortunately I don't have a clue how to accomplish this and have been unsuccessful locating anything in the help.

Can anyone point me in the right direction?

thanks!

leslie
 
You printer manual should have a list of ESC codes that control the printer. There should be one to specify the tray.


Hope this helps.

[vampire][bat]
 
Thanks for that info, I'll look in the manual to see what I can find, but I'm still not clear what I need to do once I get the ESC code.

(sorry for the late reply, i've been on vacation since I posted!)

leslie
 
Ok, I have found what I believe is the correct information:

3.5. Output Bin Command

Format: ESC & 1 # G
Hex: 1B 26 6C # 47 (# is specified in text)
Function: Specifies the output bin

Then there is a table that indicates what number should replace the # in the Format (in my case tray 6 = 6).

But I still don't know what I need to do next! Thanks for any insight!

leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top