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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Altering default printer settings on the fly with PPD files

Status
Not open for further replies.

dchiles

Programmer
Nov 8, 2002
1
US
Hi all,

I am in the middle of writing a network server in Perl that receives print job requests. When a request is received it parses the PPD file for the specified printer and changes the default settings (print quality, collation, duplexing, etc.). It then erases Windows' BPD file and sends the print job off to a user application like Word or Excel. The idea is that the applications will use the new "default" settings that the script created.

My problem is this: Some of the options I change in the PPD file take effect, and some don't. For example, if I make a change to the directive:

*DefaultDuplex: <duplex type>

then the default is changed. However if I make a change to the directive:

*DefaultInputSlot: <slot name>

the default is NOT changed.

I know this is not a simple question, and the answer may vary depending on the printer model. However I'm hoping that some expert out there can come up with a suggestion or two :) The test printer in question is a Xerox Phaser 860DP.

Thanks in advance,

Derek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top