?
Solved

Printing to different trays.

Posted on 2001-08-30
6
Medium Priority
?
410 Views
Last Modified: 2012-05-04
Has anyone got any examples of printing to different trays for example for customer A Print 1st page to tray 1, rest on tray 2 for customer B print 1st page on tray 3, rest on tray 4...

thanks and regards,

Adam
0
Comment
Question by:adamgernon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6440518
I am not aware of ANY way to do what you think you want to do.  A print job is sent to the Printer as a SINGLE BATCH job, to be executed by the printer.  And as it is a SINGLE entity when it gets to the printer, all pages in that entity will be treated the same.  Anything else would be a very special case of the way the Print spooler behaves for that specific printer, and I doubt that there is any way to alter that behavior in your code.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6440712
How are you printing?  Are you using the Printer object?
0
 
LVL 4

Expert Comment

by:PBuck
ID: 6440823
We send various single print jobs to different trays all the time while printing forms (letterhead, colored seperator, and of course white).

We do this by sending raw PCL commands to the printer, so I know that if you are using a PCL/PostScript printer - you should be able to have the same functionality.  But, we are using a program to convert an older XES language to PCL - so I do not know the exact PCL command or script.

What I would suggest is to use the following code/API to send raw characters to the printer:
http://www.planet-source-code.com/xq/ASP/txtCodeId.12410/lngWId.1/qx/vb/scripts/ShowCode.htm

*You will just have to determine the proper PCL commands.

btw - is the printer programmable?  Such as determining tray1=Letterhead, tray2=color ?

Hope this helps!~
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:adamgernon
ID: 6444088
It is through the word object model...
0
 
LVL 4

Expert Comment

by:PBuck
ID: 6445417
No ... the code above sends raw text thru to your desired queue (whether local or located on the LAN).

As for the printer being programmable, their are some larger models such as Lexmark and Xerox that allow programming of the trays.  So whenever it recieves an tray command, it will pull from the desired tray.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 6445461
adamgernon,

If you are using the MS Word object model you should be able to control the printing (including the trays).

Take a look at the PrintOut method and the PageSetup object.

Caveat: I have never done this, but I would assume that if you can do it manually with Word, you should be able to do it programmatically.

Anthony
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question