HOW TO SELECT PAPER SIZE FOR PRINTING FROM AIX

ITEM: RTA000025856



QUESTION:                                                                       
I am trying to print using legal size paper on a HPLJ-3                         
printer from the RISC/6000 running AIX v3r2. The printer works                  
fine when printing on letter size paper but I am unable to change               
the virprt parms to get legal size paper... the printer keeps asking            
for the letter size paper tray (printer only has one tray slot... it            
knows which tray is on the printer- legal or letter). We have tried             
setting the virprt parms (tray= 1 or 2, paper size= legal/letter,               
lines per page= 66 or 84) in every possible combination but when we             
have the legal size paper tray attached the printer says " insert               
letter tray" then the output prints. Are we missing a parm? Maybe               
the printer is not set up correctly but it works from a PC. Any help            
you can provide would be appreciated. By the way, we are using the              
qprt command to do the printing.                                                
                                                                               
---------- ---------- ---------- --------- ---------- ----------                
A:                                                                              
   I assume this is a pcl queue on the HPLJ III, and the AIX level is           
   AIX Version 3.2.2.                                                           
                                                                                
   The "es" attribute in the colon file controls the initialization of          
   the page size.  It is sent to the printer before the print job itself        
   as part of the "ci" attribute; it (es) is referenced by an include           
   directive in ci.                                                             
                                                                                
   The escape sequence you want sent to the printer (as far as page size        
   is concerned) is "ESCAPE AMPERSAND LOWERCASE_L THREE A".  This is the        
   sequence that will set the paper size to legal.  If you look at the          
   definition of the es attribute in the colon file, you can see that to        
   cause this sequence to be sent, other attributes must have specific         
   values as follow:                                                            
                                                                                
     _Q = wQ = 2 (the 2 is the value of s1, the paper size for tray 1)          
     _O = 3 (so s1 will be chosen as the value of _Q)                           
     _u = 1 (again so s1 will be chosen as the value of _Q)                     
                                                                                
   These values will cause the aforementioned escape sequence to be sent        
   to the printer as part of the ci initialization string.                      
                                                                                
   In the meantime, I would try the following to see if it resolves the         
   problem.  Use lsvirprt to select the virtual printer with which you          
   are working.  Issue the command "ci tilda v", where the word tilda is        
   a real tilda (there are no spaces in this command).  This will take          
   you and the attribute into a real powerful vi session.  Line 19 or so        
   reads  Ies, which is the line that causes the es attribute to be            
   included in ci.  Delete this line and this line only.  Then replace          
   the space it used to occupy with:                                            
                                                                                
      '\33&l3A'                                                                 
                                                                                
   which reads "QUOTE BACKSLASH 33 AMPERSAND LOWERCASE_L THREE A QUOTE".        
                                                                                
   Hardcoding this value should not make a difference, however, it is           
   another method.                                                              
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q601855      BRDBL                      
                                                                               
Additional search words:                                                        
AIX ALTERNATE BRDBL HARDWARE HPLJ INDEX IX OCT92 PAPER PRINT PRINTER            
PRINTING RISCOHW RISCSYSTEM SELECT SELECTABLE SELECTED SELECTION                
SELECTIVE SIZE SIZING V3R2                                                      
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000025856 ITEM: RTA000025856
Dated: 03/1996 Category: RISCPRT
This HTML file was generated 99/06/24~12:43:09
Comments or suggestions? Contact us