Printing to a specific tray using JDK 1.3.

I want to select a particular printer tray while carrying out printing.
I am using JDK 1.3.Can this be made possible.
To explain in detail , My application would be actually fetching the printer details .No dialogue box is supposed to pop up.Once the print button is clicked directly the page should be printed to a specific printer & a particular tray.
Can anyone guide me.

I suggest taking a look at the following thread:
http://forum.java.sun.com/thread.jspa?threadID=555165&tstart=0

Similar Messages

  • HP Envy 7640 won't print photos from photo tray using MacBook Pro

    My new HP Envy 7640 will not print photo's from the photo tray. The photo tray option is not highlighted to choose it. I have restarted both the HP and MacPro several time. What am I missing?

    Hello @MEMEF,
    Welcome to the HP Support Forums!
    I would like to work with you today with resolving the Photo Tray printing option issue that you're experiencing when printing from your Mac OS X computer to your HP ENVY 7640 e-All-in-One Printer. Due to the lack of Photo Tray options there is a chance that your HP Envy print driver is not being properly utilized on the Mac Computer. However, in order for me to provide you with accurate support on the Mac I do need to confirm what version of the Mac Operating System you're using?
    In the meantime, I am going to have you check on your Mac to ensure that the HP Envy driver is selected and not the Apple AirPrint driver. The AirPrint driver is a generic driver offered by Apple to allow for basic printing ability. Because it is not a Full Feature driver that comes with your printer you may not have all the printing features that you should have on your printer. To check the driver please follow the steps below.
    1. Click the Apple menu, and then click System Preferences.
    2. Click Print & Scan, and then check if the name of your printer displays in the Printers list.
    3. If your printer is already listed, remove and re-add the printer to confirm communication with the Mac. Click the name of your printer, click the minus sign (), and then delete the printer
    4. Click the plus sign (), click Add Printer or Scanner, click the name of your printer
    5. Click the Use or Print Using box, and then select the name of your printer in the pop-up menu. Ensure that you have the HP Envy driver selected and not the AirPrint.
    6. Click Add to add the printer to the list.
    - Source
    The options may differ on your Mac if you're running an earlier Operating System.
    Once the correct driver has been verified as added in, please try printing to your Photo Tray again.
    Please respond to this post with the result of your troubleshooting. Should the issue persist, be sure to include your Operating System in your next post. Best of luck!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • How do I print to a certain tray, using the eprint service of the HP Color LaserJet CM4540 MFP

    Greetings,
    I am using the excellent eprint service, and I need to specify which tray should be used. Is this possible ?
    tychomoon
    This question was solved.
    View Solution.

    Hi tychomoon,
    You cannot set a different tray for the ePrint service individualy,
    However, you may set a default tray for the product, which will be used for ePrint as well.
    "You can only change the paper tray settings from the HP product control panel."
    (Source: http://h20000.www2.hp.com/bizsupport/TechSupport/D​ocument.jsp?lang=en&cc=us&taskId=120&prodSeriesId=​...)
    You may find how to select the tray below:
    http://h20000.www2.hp.com/bizsupport/TechSupport/D​ocument.jsp?lang=en&cc=us&taskId=115&prodSeriesId=​...
    Either the Default Job Options or the Paper Selection configuration should be applicable for this need.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Scheduling a report to print to a specific printer tray

    I'm trying to schedule a report to print to a specific tray on a specific printer.
    The SDK permits me to specify the printer, using ReportPrinterOptions, but it just seems to always print to the default tray for each printer and there are no ways, that I've found, to specify a particular paper tray to print from.
    Normally this isn't an issue, but we have a client that has a special report that prints to special paper that's always available in the secondary tray of the printer.
    Have I missed something obvious here?  Any help would be appreciated.

    Hello,
    You didn't specify the version of Crystal Reports you're using, the version of Visual Studio you're using, or which .NET SDK you're using. Assuming you're CR XI R2 (v11.5) with VS2003/VS2005 and the CR.NET SDK (reportdocument object) then you're looking for the CustomPaperSource property off of the PrintOptions class.
    You can search the forums for additional posts, but I found this one - [Setting PaperSource|Re: Setting PaperSource;. There may be others.
    You can also find information in the [CR XI R2 Developer Library|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]. Search on CustomPaperSource.
    There is a tutorial available under the [PrintOptions.CustomPaperSource Property|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crlrfCrystalDecisionsCrystalReportsEnginePrintOptionsCustomPaperSourceTopic.htm] search result.
    This should get you back on track.
    Sincerely,
    Dan Kelleher

  • Need to point Printer to specific tray

    Dear All,
    We have a printer with Tray 1 and Tray 2. I would like to print Labels through Tray 1 and paper print outs through Tray 2.
    So what i have created separate output devices in SAP and OS level as well like below
    SPAD -Label printer ( settings in output attribute Tray1 ) pointing to OS level PrinterL --> IP 
    SPAD -Paper printer ( Tray 2 ) poiting to OS level PrinterP --> IP
    Where as both the IP are same. Just the trays are different in the same printer.
    But it seems to be not working. Could anyone have any idea to fix ? Please advice me.
    Thanks in advance
    Raj

    Hi Raj,
    We would need further details to say exactly but this should be possible.
    The commands to print to a specific tray should be available in your printers user guides.
    What exact printer model are you using?
    What device type?
    What access method?
    The printer defined in SPAD showed have a tray selection under the attributes tab.
    The following is a breakdown of setting the tray selection in SAP,    
    which is handled differently for Smartforms, SAPSCRIPT forms and ABAP 
    lists.                                                                               
    The following attached Note explains how the tray selection is set for
    Smartforms:                                                                               
    189618 - Paper tray and print mode for Smart Forms                 
    For each page of the form, the paper resource can be specified within      
    the form from transaction smartforms.                                                                               
    eg: /nsmartforms -> <Form Name> -> Change -> FIRST First Page              
                      -> Resource Name -> eg: 'TRY02'                                                                               
    For SAPScript, the tray is specified in the layout set of the form in      
    transaction SE71 as per the following attached Note:                                                                               
    42565  - Select paper feed when printing SAPscript in 3.0x                                                                               
    Again you need to to specify the tray in in form:                                                                               
    se71 -> <Form Name> -> Pages -> Print Attributes -> Resource Name         
           -> Enter TRY01, TRY02, TRY03 or TRY04 here                                                                               
    Note #42565 also explains how to  test the paper tray selection by         
    printing out the standard text SAPSCRIPT-TRAYTEST (supplied in German      
    and English in client 000) using standard text maintenance (transaction    
    SO10). This test will verify your device type/printer combination for      
    Sapscript.                                                                 
    The tray settings in transaction SPAD have no influence when printing     
    a SAPSCRIPT form. Also with ABAP lists and Smartform, the SPAD settings   
    are only effective if you use one of the special list drivers described   
    Note #143375.                                                             
    Regards,
    Paul

  • Select the printer tray using the Java Print Service with JDK 1.4.2

    Hello,
    I have got a problem with 1.4 Printing. I would like to specify the printer tray for printing on Windows platform (XP and NT4.0). I am trying to use the attribute javax.print.attribute.standard.MediaTray class (ex. MediaTray.BOTTOM).
    Howerver, I can control the printer tray if I use the PCL driver of the printer. If I user the postscript driver I am not able to control the printer tray. I can reproduce the problem with 3 different printers (HP, Lexmark and Nashuatec).
    I used the getSupportedAttributeValues to check the supported values of the Media
    Media med[] = (Media[])service.getSupportedAttributeValues(Media.class, null, null);
    for (int k=0; k<med.length; k++) {
    System.out.println("Name : " + med[k].getClass() + " - Value : " + med[k].getValue());     
    With the PCL driver I have the following output and I can control the printer tray.
    Name : class javax.print.attribute.standard.MediaTray - Value : 0
    Name : class javax.print.attribute.standard.MediaTray - Value : 2
    Name : class javax.print.attribute.standard.MediaTray - Value : 4
    Name : class sun.print.Win32MediaTray - Value : 0
    Name : class sun.print.Win32MediaTray - Value : 1
    With the postscript driver I have the following output and I cannot control the printer tray
    Name : class sun.print.Win32MediaTray - Value : 5
    Name : class sun.print.Win32MediaTray - Value : 6
    Name : class sun.print.Win32MediaTray - Value : 7
    Name : class sun.print.Win32MediaTray - Value : 8
    Name : class sun.print.Win32MediaTray - Value : 9
    As I must use the postscript printer, can someone help me?
    Thanks.

    Hello,
    Can you tell me how it's possible to selet the tray using the PCL?
    I print on the following way:
    PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    AttributeSet aset = new HashAttributeSet();
    aset.add(new PrinterName("\\\\107208\\SBE08111", null)); // select printer
    ......Now I tried to add your code and I get the following output:
    0: Name : class javax.print.attribute.standard.MediaSizeName - Value : 40
    1: Name : class javax.print.attribute.standard.MediaSizeName - Value : 41
    2: Name : class javax.print.attribute.standard.MediaSizeName - Value : 45
    3: Name : class javax.print.attribute.standard.MediaSizeName - Value : 42
    4: Name : class javax.print.attribute.standard.MediaSizeName - Value : 4
    5: Name : class javax.print.attribute.standard.MediaSizeName - Value : 5
    6: Name : class javax.print.attribute.standard.MediaSizeName - Value : 27
    7: Name : class javax.print.attribute.standard.MediaSizeName - Value : 46
    8: Name : class javax.print.attribute.standard.MediaSizeName - Value : 59
    9: Name : class javax.print.attribute.standard.MediaSizeName - Value : 60
    10: Name : class javax.print.attribute.standard.MediaSizeName - Value : 55
    11: Name : class javax.print.attribute.standard.MediaSizeName - Value : 38
    12: Name : class javax.print.attribute.standard.MediaSizeName - Value : 16
    13: Name : class javax.print.attribute.standard.MediaSizeName - Value : 57
    14: Name : class javax.print.attribute.standard.MediaTray - Value : 0
    15: Name : class javax.print.attribute.standard.MediaTray - Value : 2
    16: Name : class javax.print.attribute.standard.MediaTray - Value : 1
    17: Name : class javax.print.attribute.standard.MediaTray - Value : 6
    18: Name : class javax.print.attribute.standard.MediaTray - Value : 4
    19: Name : class sun.print.Win32MediaTray - Value : 0
    20: Name : class sun.print.Win32MediaTray - Value : 1
    It's a printer with to trays, so I suppose the last two lines are important, but I'm not possible to effectively select the tray I want to print..

  • MX920 trying to print from wrong tray using iOS

    Greetings! I am trying to print a picture from my cell phone with iOS to my MX920, but it always wants to print from the upper tray. I want it to print from the lower tray. How can I do this?
    Thank you!

    Hi Captain59,
    When printing from your wireless devices via Apple AirPrint, the paper size and tray that will be printed from is selected automatically according to the application software being used on the device, and the region in which AirPrint is used.  When Apple's photo application software is used, the default paper size is 4x6, so the printer will feed from the upper cassette tray.  If you want to print in another paper size such as 8x10 or from the lower cassette, you will need to use a program that has that paper size as a selectable option and print from that program to the printer.  
    Hope this helps!
    This didn't answer your question or issue? Please call or email us at one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • When you print from an ipad, can you print to the 8x11 tray?

    My grandfather has an ipad and an hp photosmart printer. When we print from a computer, it goes straight to the 8x11 tray and prints on normal sized paper. When we print from the ipad it goes straight to the photo tray and prints on photo paper. I know that for iOS, airprint doesn't support tray selection and just prints to whatever tray 1 is. Is there a way to change it on the printer so that the 8x11 tray reads as tray 1 and we can print from the ipad to the regular printer paper? We've tried just removing the photo tray, and that doesn't work.

    Hi there,
    Well luckily you dont have to go changing any settings to default specific trays to different settings. Just download the HP Home and Biz app from the app store for free. It has the ability to set the paper size used
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • HP Color LaserJet CP1514n Printer paper jam in tray 2 - How to clear same?

    HP Color LaserJet CP1514n Printer
    A page was torn in printing. Message: Clear jam in tray 2.
    Have been trying to do just that for over 2 hours.
    Any hint?

    Lets try the following:
    You will need access to both front and back of printer
    Power off and unplug printer
    After printer has cooled down (nothing is hot inside printer), slide out bottom tray
    Slide out print cartridge tray.  No need to remove cartridges.  Be careful not to touch bottom of cartridges.
    Open back of printer.  Back door is opened by pulling back/away from device using notch at top.  Should pop open with little effort.
    From back of printer, with flashlight/Smartphone, look for jammed paper. 
    Be careful for edges.  Not a lot of space.
    Hope this help you find jammed paper.
    I work for HP

  • Using JDK 1.5 in frame font is appearing different as it is coming in 1.4

    When I am going to compile my application using jdk 1.4 and 1.5 both,in 1.5 fonts in my application component like frame,dialog fonts are appearing in different manner means in 1.5 it is appearing in bolder manner.
    We are developing framework application and we have to give release for jdk 1.5 version but it is giving font difference.
    Please resolve this issue because it is very urgent and critical.
    this is not our framework problem i have developed one below simple application and compiled it in jdk 1.4 and 1.5 it is showing font difference.
    Fonts like times new roman and arial etc are coming in bolder manner means more width but height and style is same.
    i have snapshot also but i am not able to paste becasue editor is not accepting images.
    I am giving you small program that will reproduce defect apart from my application.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.FontMetrics;
    import java.awt.Frame;
    import java.awt.Graphics;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextArea;
    import javax.swing.SwingConstants;
    public class WizardDemo14
    public static void main(String[] args)
    JFrame dlg = new JFrame("COMPILED IN 1.5");
    JLabel jLabel1 = new JLabel();
    jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 50));
    jLabel1.setForeground(Color.blue);
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
    jLabel1.setText("Finish...");
    dlg.getContentPane().setLayout(new BorderLayout());
    dlg.getContentPane().add(jLabel1);
    dlg.setSize(400 ,400);
    dlg.setVisible(true);
    dlg.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Please help me
    Edited by: umesh3077 on Apr 2, 2008 6:44 AM

    Below taken directly from the v1.6x API java.awt.Font class doco:he Java Platform distinguishes between two kinds of fonts: physical fonts and
    logical fonts.
    Physical fonts are the actual font libraries containing glyph data and tables to
    map from character sequences to glyph sequences, using a font technology
    such as TrueType or PostScript Type 1. All implementations of the Java
    Platform must support TrueType fonts; support for other font technologies is
    implementation dependent. Physical fonts may use names such as Helvetica,
    Palatino, HonMincho, or any number of other font names. Typically, each
    physical font supports only a limited set of writing systems, for example, only
    Latin characters or only Japanese and Basic Latin. The set of available
    physical fonts varies between configurations. Applications that require specific
    fonts can bundle them and instantiate them using the createFont method.
    Logical fonts are the five font families defined by the Java platform which must
    be supported by any Java runtime environment: Serif, SansSerif, Monospaced,
    Dialog, and DialogInput. These logical fonts are not actual font libraries.
    Instead, the logical font names are mapped to physical fonts by the Java
    runtime environment. The mapping is implementation and usually locale
    dependent, so the look and the metrics provided by them vary. Typically, each
    logical font name maps to several physical fonts in order to cover a large range
    of characters.
    Peered AWT components, such as Label and TextField, can only use logical
    fonts.
    For a discussion of the relative advantages and disadvantages of using
    physical or logical fonts, see the Internationalization FAQ document.

  • Why are HP printer cartridges country specific? Is there any way around this?

    I have just moved from the UK to Newfoundland, Canada and I have brought my HP PSC 1610 printer with me.  I was advised not to bring any cartridges with me because they would explode during the flight so I had to buy new cartridges upon arrival.
    I noticed that the cartridge numbers recommended for my printer were similar but not exactly the same but the (HP, etc.) websites I looked at did not mention that HP printer cartridges country specific.
    In the UK black cartridge is an HP338 (C8765EE).
    In Canada the websites told me that the black cartridge is a 94 (C8765WC).
    I ordered a 94 cartridge (which took an indordinate amount of time to be delivered) and when I installed it my printer would not accept it ("not intended for use in this printer" error message) even though it fit perfectly.  I looked at the packaging in greater detail and noticed that I had been sent a 94 (C8765WL) and I also noticed (in a very small font size) "for sale only in Latin America".
    My questions are therefore:
    1) Why are HP printer cartridges country specific?
    2) Is there any way around this?  Eg is there anything I can do to my printer/ laptop to tell it to accept this cartridge?
    3) Are 94/ C8765WL cartidges compatible with 94/ C8765WC cartirdges?  Ie did the supplier sell me something that couldn't be used even if I had a Canadian HP PSC 1610 printer?
    4) Can I return the cartridges to the supplier given that it is based in Canada, they delivered it to me in Canada and yet they sold me a product that says "for sale only in Latin America"?
    Thanks
    anenglishmaninsaintjohns

    You will need to Contact HP to request a "Regionalization Reset". There should not be any charge for this, it is covered as part of the cartridge warranty. You will need to have access to your computer and printer while on the line with HP. You will also need to have a set of cartridges for the new region, once the reset is complete cartridges from the original region will no longer work.  HP's web page on the subject is here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • HT3349 How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    There is no analog to MS Excels print range.  So the next best thing is to plan your data so that you don't need to use print range.  The next best thing after that is to select the range of cells you want to print, then copy, the switch to the application Preview, and create a new document from the clipboard (select the menu item "File > New from Clibboard") then select all, copy then paste to the destination (maybe an email) .
    You can also paste that portion of the table into another table (or a new table) by pasting values only

  • Problem using jdk included with JDEV9i

    I am trying to use jdk supplied with jdev9i release candidate 2 on my system
    (win 98).I have included c:\jde9i\jdk\bin in my system's path and c:\jdev9i\jdk\lib
    in my class path.
    But when I invoke compiler using javac it prints a long error message ,
    some of them are given below(I can't see the main exception because it scrolls up).
    Sun.misc.Resource Sun.misc.URLClassPath.getReasource(java.lang.String.boolean)
    java.lang.Object java.net.URLClassLoader$1.run()
    java.lang.Object java.security.AccessController.dePriviledged(java.security.
    PriviledgedExceptionAction,java.security.AccessControlContext)
    So how can I use this jdk to compile and run my other applications.

    Hi,
    My document looks as follows:
    <pre:inventory xmlns:pre="http://www.example.com/books">
    <pre:book year="2000">
    <pre:title>Snow Crash</pre:title>
    <pre:author>Neal Stephenson</pre:author>
    <pre:publisher>Spectra</pre:publisher>
    <pre:isbn>0553380958</pre:isbn>
    <pre:price>14.95</pre:price>
    </pre:book>
    <!-- more books... -->
    </pre:inventory>
    And I tried the following:
    //pre:book
    /pre:inventory and
    /pre:inventory/pre:book
    I have the necessaty code in my namespaceresolver as follows:
    public String getNamespaceURI(String prefix) {
            if (prefix == null)
                  throw new NullPointerException("Null prefix");
            else if ("pre".equals(prefix))
                   return "http://www.example.com/books";
            else if ("xml".equals(prefix))
                   return XMLConstants.XML_NS_URI;
              return XMLConstants.NULL_NS_URI;
                    cheers,
    ovisvana

  • My printer has stop printing from the photo tray. I need to place the photo stock in the main tray

    I've a HP PhotoSmart Plus printer B210a.  The printer will no longer print from the photo tray.  I'm still able to get prints; but I must place the photo stock in the main tray.  It becomes a problem, because I sometimes forget the photo stock is the main tray and I waste photo stock when I do my regular printing and only get part it because the photo was still in the tray.  Anyway to fix this?

    Hi there wmcook,
    Could you provide the community with a little more information to help narrow troubleshooting? What operating system are you using and are there any errors when attempting to print from the photo tray?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Printing to multi purpose tray from on Canon ImageRunner C5045

    I am having a problem printing to the multi purpose tray on my work printer.
    I've been able to print sucessfully to the multipurpose tray when I print from mail, or any other non-adobe application.
    However, it does not work in Illustrator cc/indesign/etc.
    I have gone through all the steps to select the correct paper feed options (file > print > setup > paper feed > all pages from > multipurpose tray.)
    I then tell my printer which paper I am using.
    It still does not recognize.
    Any thoughts appreciated.

    To print to Mailbox, you need to ensure you are using the Canon PS Driver for OS X, preferably v1.70 or later. There is also a Canon UFR2 driver for OS X, but it is not available to all models of imageRUNNER.
    With the correct driver installed, when you select to print from an application, change the Copies and Pages menu to Special Features. Here there is an option called Job Processing and in this menu you have the options of Print, Store, Secured Print and Promote Print. To print to mailbox, select the Store option. Then when you press Print the window letting you select the Mailbox number and enter the file name will appear.
    If you don't have the Special Features tab but have installed the PS driver v1.70 or later, then something has gone wrong with the installation and the driver will need to be installed again. Please reply if you need help with this.

Maybe you are looking for

  • PayloadZipBean - variable filename inside the archive

    Hi, I'm using the Adapter-Specific Message Properties in a sender fileadapter to determine the incoming filename, which has variable components (i.e. date and time). After changing the prefix and suffix in a Message-Mapping the new name is applied in

  • How to connect SAP R/3 4.6c Web AS 6.20

    how to connect SAP R/3 4.6c Web AS 6.20 with XI NW04

  • Contact profile picture appears - then dissapears

    a contact profile picture appears when i login on skype then dissapears within a few seconds.. does that mean he doesn't want me to see his picture or did he hide me from his contacts? if he hid me or remove me from his contacts, can he still read my

  • Organizing multiple itunes libraries?

    I want to synch  up iTunes libraries between a  macbook (lion) macbook pro (lion) iMac (snow leop).  The music on these machines is not all the same and I'd like them to be.  I also have a hard drive with an iTunes music folder in it from an older ma

  • BI Accelarator

    Hi guys, My manager asked a question: Can you solve Performance problem in BW with a BI Accelerator? points willbe awarded.thanks in advance