Ask the Expert

How do we send PCL commands to all five trays of our HP printer?

We will build a VB 6.0 application. It needs to be able to print from all five trays of our HP LaserJet 8150N. It looks as though we will have to send PCL commands from VB. In detail, how would we do this? The PCL codes for all five trays? What exactly do we place in the PCL file and how do we send it from VB?

    Requires Free Membership to View

The only thing I know about Windows printing is that you can print from Windows applications. My guess is that you're going to have to use the SetPrinterData or SetPrinterDataEx API functions as these allow you to send configuration data to the printer.

This was first published in February 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: