Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Changing the default print tray in Unix Post 302082499 by tnix on Wednesday 2nd of August 2006 03:57:10 PM
Old 08-02-2006
Changing the default print tray in Unix

I have a unix based app that I'm trying to print to an HP Laserjet 4050n but it keeps defaulting to Tray 1. I need it to print to Tray 3. When I print to the printer from a windows based app it prints to the correct tray specified.

It was printing ok previously but I had to to a cold reset on the printer and ever since then it defaults to tray 1 no matter what.

Any help would be greatly appreciated!

Thx,
Tony
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

tray selection using lp command

I have a HP laserjet 9000 printer on a Sun Solaris server. I try to print using lp command to different trays. But it gives an error. The command that i used is lp -dprinter_queue -otray2 file_name (1 Reply)
Discussion started by: avinashrm
1 Replies

2. HP-UX

Print Problem in UNIX. Need to know the option to specify the print paper size

Hi, Could any one please let me know what is the option available in UNIX to print by specifying the paper size? We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if... (1 Reply)
Discussion started by: ukarthik
1 Replies

3. UNIX for Advanced & Expert Users

tray selection

Hello All, Could anyone help me how to selecting the trays in unix . Thanks, Amit kul (3 Replies)
Discussion started by: amit kul
3 Replies

4. AIX

AIX Laserjet 4+ specify tray to print to

Is it possible to specify the tray you would like to print to in AIX? We are using the laserjet 4+ driver. Thanks in advance (0 Replies)
Discussion started by: zuessh
0 Replies

5. IP Networking

Changing Print Processor

Hi. I have problems with my printing jobs. My topic is https://www.unix.com/unix-dummies-questions-answers/52413-lj4300-lj5m-printer-network-works-only-sometimes.html#post302164871 I'm thinking about to change the print processor who actually is HPPRN05 and put in a WinPrint. Do I have to save any... (0 Replies)
Discussion started by: luisben
0 Replies

6. AIX

printer tray and blank separator issues

Hi, I experience some issues with my new print queues that I created in AIX (smitty). This following print queue is dedicated to print on tray 1 and the user have to put the paper manually, the jobs should be executed without separator page. But when we print on this queue, the job is executed... (1 Reply)
Discussion started by: imad77
1 Replies

7. AIX

chvirprt and tray 1

Hi, I'm not able to print on tray 1. I checked the configuration and I get these 3 options: $lsvirprt -q print1 -d hp@xprint -a _O Name Description Value _O Type of INPUT PAPER HANDLING (backward 1 ... (0 Replies)
Discussion started by: imad77
0 Replies

8. Hardware

Fan Tray for Sunfire T2000

Recently the rear fan assembly of one of our T2000 servers went faulty. I could replace it immediately with the one from a currently powered off standby machine. But now this one has to be replaced. So I got a quote from our supplier who charges EUR 776 for a new spare part or EUR 405 (all... (0 Replies)
Discussion started by: hergp
0 Replies

9. Linux

Required Icon Tray in Linux

Hello I am using linux machine. I need Icon tray in this. "Icon Tray" contains all the icons which we open in the workspace. As such, these icons appear at the bottom (similar to windows i.e.when we open internetexplorer, Word, XLs, these icons appear in the bottom) I have to open so many... (3 Replies)
Discussion started by: nehashine
3 Replies
XpSetContext(3Xp)						 XPRINT FUNCTIONS						 XpSetContext(3Xp)

NAME
XpSetContext - Sets or unsets a print context with the specified display connection to the X Print Server. SYNOPSIS
cc [ flag... ] file... -lXp [ library... ] #include <X11/extensions/Print.h> void XpSetContext ( display, print_context ) Display *display; XPContext print_context; ARGUMENTS
display Specifies a pointer to the Display structure; returned from XOpenDisplay. print_context A pre-existing print context on the same X Server. DESCRIPTION
XpSetContext sets the print context for a display connection. All subsequent print operations that do not explicitly take a print context- id (for example, XpStartJob) on display will use and act upon the print context set by this call, until the print context is unset or XpDe- stroyContext is called. The print context can be set and used on multiple jobs, if not destroyed. If print_context is None, XpSetContext will unset (disassociate) the print context previously associated with display. If there was no pre- viously associated print context, no action is taken. The content of the formerly associated print context is not affected by this call, and other display connections may continue to use the print context. Since font capabilities can vary from printer to printer, XpSetContext may modify the list of available fonts (see XListFonts) on display, and the actual set of usable fonts (see XLoadFont). A unique combination of fonts may be available from within a given print context; a client should not assume that all the fonts available when no print context is set will be available when a print context is set. When a print context is set on a display connection, the default behavior of ListFonts and ListFontsWithInfo is to list all of the fonts normally associated with the X print server (i.e. fonts containing glyphs) as well as any internal printer fonts defined for the printer. The xp-listfonts-modes attribute is provided so that applications can control the behavior of ListFonts and ListFontsWithInfo and is typi- cally used to show just internal printer fonts. Using only internal printer fonts is useful for performance reasons; the glyphs associated with the font are contained within the printer and do not have to be downloaded. If the value of xp-listfonts-modes includes xp-list-glyph-fonts, ListFonts and ListFontsWithInfo will include all of the fonts available to the server that have glyphs associated with them. If the value of xp-listfonts-modes includes xp-list-internal-printer-fonts, then List- Fonts and ListFontsWithInfo will include all of the fonts defined as internal printer fonts. When the print context is unset or XpDestroyContext is called, the available fonts on display revert back to what they were previously. DIAGNOSTICS
XPBadContext A valid print context-id has not been set prior to making this call. SEE ALSO
XpDestroyContext(3Xp), XpStartJob(3Xp) X Version 11 libXp 1.0.0 XpSetContext(3Xp)
All times are GMT -4. The time now is 07:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy