Note
The ITP/Server scripting language provides the ChangeBins script command which automates the call to the ChangeBins program. The following information is provided for situations where the ChangeBins tools have to be invoked directly.
To change the paper trays in a Microsoft Word document the ChangeBins tools must know which printer has been used to make the Microsoft Word document and on which printer the document has to be printed. This information must be issued on the command line:
ChangeBins "document.doc" "original printer" "new printer"
or
ChangeBinsW "document.doc" "original printer" "new printer"
where:
document.doc is the full path to the document that must be changed.
original printer is the printer that is used to layout the document.
new printer is the printer that is used to print the document.
The quotes are required to ensure that spaces are handled correctly.
The ChangeBins and ChangeBinsW programs also accept one or more /Section options to provide more detailed paper tray handling. This option is described in the next section.
To change the document "C:\My Documents\sample.doc" that is formatted for a "HP LaserJet 4050 Series PS" printer to print on the "\\xerox\xerox" printer, use the following command line:
(line breaks have been added for readability):
"C:\Program Files\ChangeBins\ChangeBins"
"C:\My Documents\sample.doc"
"HP LaserJet 4050 Series PS"
"\\xerox\xerox"
The ChangeBins program will show the changes it made to the sample document:
Changing bins from "HP LaserJet 4050 Series PS" to "\\xerox\xerox"
Changing Bins of Section 1:
First Page: Changed Bin 271 to Bin 2
Following Pages: Changed Bin 270 to Bin 2
Changing Bins of Section 2:
First Page: Changed Bin 269 to Bin 2
Following Pages: Changed Bin 269 to Bin 2
Both ChangeBins and ChangeBinsW provide error information through their return code:
0 Completed successfully.
1 An error occurred.
If an error occurs, the ChangeBins program will write a diagnostic error to its output. This information will show if the ChangeBins program is called from a DOS box.