How to ser source in print dialog?

Hi All,
We use the java print dialog embedded in our code. In general, the default value for the source is "Automatically select". But we want to set it to the other value according to the different printer driver. I searched this in google and JDK, found nothing with it. Who can give me some info about how to set this attribute in java code or other else?
Thanks
Ken

Let me clarify the question. There is a PrinterJob in java.awt.print package. User can call PrinterJob.printDialog() when print something. Then user can set some attribute in this print dialog. It not a swt component.
In the print dialog, there are three tabs: General, Page Setup and Appearance. In Page Setup tab, user can set source by selecting other value from the combobox. The default value of source is "Automatically Select". But in our project, we need to use the other value. Of course, we can set this value manually every time. We do not want to set it every time but set it to a value which needed by our project. We do not know how to set this value programmatically or through setting the printer driver?
Thanks
Ken

Similar Messages

  • How to disable HP Universal Printing dialog box

    Hi, I am trying to install HP Universal Printing PCl 6 printers on a local machine using a batchfile from an application (C#) which automatically detects if a printer has been installed or not. The batchfile has the following entries:
    set IP=IP_%1
    pushd "%windir%\System32\Printing_Admin_Scripts\en-US\
    Cscript Prnport.vbs -a -r IP -h %1
    rundll32 printui.dll,PrintUIEntry /ia /m "HP Universal Printing PCl 6" /h "x64" /v "Type 3" /f %windir%\inf\ntprint.inf /u
    rundll32 printui.dll,PrintUIEntry /if /b %1 /f "%windir%\inf\ntprint.inf" /r IP /m "HP Universal Printing PCl 6"
    When I run my application, the printer is installed but when I try to print, sometimes I get the HP Universal Printing dialog asking me to select a printer. I can't even exit from this dialog. Other times when I dont get the printing dialog my print function fails with Invalid Handle exception.
    The next time I try to print with the printer installed, it prints documents successfully.
    How can I disable this print dialog using the batchfile above and why do I get the Invalid Handle expection on the first install and print??

    I don't think there's anyway to disable it, I just minimise iTunes or click on another application's logo while it loads. I agree with you as to it being annoying, but I don't think there's anyway to disable it. In my opinion it should just do it in the background without the dialog box...!

  • How do I force the print dialog to default to Print All?

    Hi all,
    I've searched the forums for this and found several similar requests but no answers so I am posting this as a fresh post.
    I have a requirement to have the print dialog appear when printing from javascript and have it always default to Print All.  From my research, it appears that there are only two API methods to do this:
    1) Print()
    2) PrintWithDialog()
    Neither take paramters.  Both have the same description in the documentation (which seems odd in of itself).
    From our research, PrintWithDialog() appears immediately when called (even if the PDF is not yet fully loaded) but always defaults to, "Print 1 of x" unless the PDF is only 1 page.  In that case, it defaults to Print All.
    The Print() method defaults to Print All.  However, if you call it before the PDF is fully loaded, it does not show.  I have searched these forums and found many other people running into this issue.  One thread suggested to put in a timer to make sure the PDF is loaded and then call print.  This works for small PDFs but our customers could be printing thousands of pages so there is no way to know how long to make the delay.
    I tried paying for Support to answer this question and was told there were NO PAID OPTIONS for getting support on the Acrobat SDK and to come post the question here.  The Support Engineer I spoke with assured me developers read and respond to these forums.
    This is a critical issue for an important customer so any feedback is much appreciated.
    An Adobe employee (Irosenth) mentioned something about a bug being reopened in this thread (http://forums.adobe.com/message/2601148#2601148) but no bug number was ever given.  If it truly is a bug, please provide the number, description and ETA for fix.
    If there is no solution, can I get a response from Adobe that supports my research as posted above?  In other words, confirm that both the API are working as expected?
    Finally, given that it seems many people want this functionality, how do I submit an enhancement request?
    Best Regards,
    Brian

    I downloaded Reader X and the problem is still occurrring, as was reported by the originator of this thread back in November.
    Are there any parameters that need to be set for this to work?  My customer is getting very impatient with this.
    Also, since downloading Reader X the toolbar does not appear by default. It pops up when you hover over the top of the window.   How do I get the toolbar to appear by default?  (this is not nearly as important as defaulting the print dialog to Print All on mulitple page docs when using printwithdialog).

  • How to change language in print dialog ?

    Hi,
    I use the following piece of code to start printing:
                PrinterJob printJob = PrinterJob.getPrinterJob ();
                printJob.setPrintable(printable);
                printJob.setPrintService(printService);
                if (printJob.printDialog(attributes)) {
                    .... printing
                }I want to translate all the messages in the print dialog into polish, but I don't know how to do it. In case of dialogs such as JFileChooser it is easy, and can be done by UIManager.put(key, value) But how to modify the printing dialog ?
    Thanks for any help,
    KuBuSiEk

    If it's the whole LR UI, then you'll find the language settngs in LR's preferences dialog.  LR doesn't control the print dialog though.  Which OS?  Checked your OS language?

  • HT204135 How can one make the printer dialog box to have Show Details as default?

      I very often use different presets from document to document.  Thanks.

    Once you select the Show Details for any application, the next time you use that application and select to print, the full details pane should be shown.
    If this is not happening and the applications always show the Hidden Details print dialog then you may need to perform some sort of reset.
    Also, if you were to use the Presets option and set commonly used settings as a Preset, then even if the print dialog is not showing the extra details, you can still select the desired Preset from this print dialog.

  • How to view the print dialog

    Hello,
    Does anyone know how I can view the print dialog on the client's screen instead of the server screen. I use java.awt.print classes.
    Frame f = new Frame("test");
    f.pack();
    PrintJob pj = f.getToolkit().getPrintJob(f,"PRINTING NCN", new Properties());
    Paper paper = new Paper();
    paper.setImageableArea(0,10,74,105);
    PageFormat pageFormat = new PageFormat();
    pageFormat.setPaper(paper);
    if (pj != null) {
         Graphics g = pj.getGraphics();
    Thx.

    if what you want, it is to print what it is seen in the server in the client, you must follow these steps:
    1. server: make an screen capture in a JSP page and send the image to the client in jpg format
    2. client: show the jpg image in a hidden frame or window and use javascript to show the print dialog
    3. client: the javascript code is parent.print();
    This works. I sure.
    Good luck.

  • How to open print dialog from web dynpro abap application

    Hi experts,
            I have a web dynpro application with several views and onone of the view there is a button that should open print dialog with printers list and all other options (standard print dialog we see in windows). I did reserach on SDN and came to now that this is a limitation of web dynpro abap. I did find some code also but unfortunately our current version of ABAP(7.0) do not support the code I found. I am not able to find any proper solution for this. Could someone please let me know how I can open a print dialog by clicking on a button in web dynpro abap? Any sample code or any information would be greatky appreciated.
    Thanks.
    Mithun

    Hi Mithun,
    Have you check this?
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f8/872806981d4411b5ce51a00207ed31/content.htm
    and also go through..
    How to print in a web dynpro application
    Print button
    Cheers,
    Kris.

  • Crystal 10 RCD and Windows (Advanced) Print Dialog Box

    Years ago I wrote a Crystal Viewer program and Crystal Support showed me how to change the Viewer Print Dialog box so it would use the Advanced Print Dialog (I believe it used the Windows Print Dialog). Does anyone know how to set the RDC Viewer to use a Print Dialog that allows changing the printer and not just the default Print Dialog box that only shows settings for the default windows printer? I no longer have the source code for the program I wrote before and can't remember what to set and I have now written a new Viewer that I want to include the ability to change printers.

    Ahhh, what you're looking for is descibed in note #[1212245|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] - How to use the Printer Setup dialog box.
    Ludek

  • Is here a way to disable the print dialog box?

    I am trying to disable the print dialog box so that a page can print directly from a javascript "print" command. How can I disable the print dialog box so that it will print automatically?

    You can try creating a new boolean preference - '''print.use_native_print_dialog''' - and set it to '''false''' and see it that still works. That pref was removed from about:config a number of versions ago, but the underlying code might still be present, so give it a try.
    http://kb.mozillazine.org/About:config

  • Print Dialog box wont appear when "Print Pages" from Bookmarks Window

    When I use the "print pages" option from the Bookmarks window the pages are sent directly to the default printer with the default settings. How do I get the print dialog window to appear if I select "print pages" from the Bookmarks window so that I may modify the print settings?

    I wasn't aware that you could get the print dialog box to appear after dragging a supported file to the alias, regardless of where it resided. I've never seen this happen on 10.4.x or 10.3.9 so I tested the Option key and found it didn't force the dialog box to appear either. Tried a few others keys also but no luck in getting the box to appear.
    Re the fierycupsfilter issue. EFI have released an updater that replaces the system-provided version and therefore stops the need to modify the ppd.

  • So, my Macbook Pro with retina display only prints in black and white. My printer, officejet 4620 series [555DE4], is not the problem. I want to know how to be able to print in color as well??

    So, my Macbook Pro with retina display only prints in black and white. My printer, Officejet 4620 series [555DE4], is not the problem. I want to know how to be able to print in color as well??

    In the Print dialog, select the Color Matching tab and then select Vendor Matching.

  • How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " when file not downloaded

    How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " standart download manager when file not downloaded

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    You can try to set the browser.download.manager.scanWhenDone pref on the <b>about:config</b> page to false.
    *http://kb.mozillazine.org/about:config

  • HOW CAN I DOUBLE SIDED PRINTING ON MY HP ENVY 4500 SERIES PRINTER

    I  recently bought my HP ENVY 4500 series printer and love it.  The only problem I have is I can seem to work out how to do double sided printing, cant see any options and the booklet doesnt tell me...maybe  I am missing something. Please help! I hate wasting paper

    have you already installed the software for the MAC?
    what is the OSX version of your MAC?

  • How do I set up my printer dialog in Quark 6 to make an Acrobat .ps file?

    Before I re-installed all of my system and application software, I would simply go to the Print dialog in Quark (6.5) and choose Adobe PDF and make a .ps file which I would then distill. I can't figure out where the Postsctipt file is now or how to access it like I used to. What am I missing? Where do I get the necessary driver and where does it "live"?

    The Adobe PDF printer should have been created by the reinstallation of Acrobat. If you have Acrobat available, start it and the go to the Help menu and select Repair Acrobat Installation. This should create a new instance of the PDF printer.

  • How to set default PDF print locations to be same as source file

    Is it possible to make the "Save to" location for files created using the Adobe PDF print driver to be the same location as the source file?
    When I checked the prefs dialog box in the Adobe PDF print driver, the only setting I found was to make "PDF Output Folder" either the "My Documents" folder or "Prompt for PDF File Name." I wish there were a third option that said "Same as source file."
    -Danny

    Hi Daniel,<br /><br />Yes, it is possible to do so.<br /><br />Here is the solution:<br /><br />1) Open the PDF.<br />2) File->Print<br />3) Click the Properties button available on Print Dialog Box.<br />4) Select the Adobe PDF Settings Tab and you will find static text "Adobe PDF Output Folder", Go for "Browse" button available against that and select your preferred location.<br />5) Now the drop down menu will display all the options i.e. "My Documents" , "Prompt for PDF File Name" and "<Your selected Option>".<br /><br />I hope this will help resolve your issue.<br /><br />Thanks,<br />Atul Agarwal<br />Adobe Systems

Maybe you are looking for

  • Using ipod as a disk

    I just got an iPod classic 160 to replace a broken one. This one seems to work a little differently than the old one (I guess it's newer thinner model). I used to use the old one as a disk to move files from my laptop to my iMac. The iPod is syched t

  • Problems with External Hard drive, will not mount and errors in disk utilit

    i have a powerbook g4 aluminum. i have an external hard drive for it. a simple tech 100gig portable drive, almost brand new. i dont know what happened to it, but one day i was starting my computer up with it attached. it wounldnt fully start up, said

  • Error with JAVA_HOME enviro variable

    I'm running win2k Pro. I installed first j2sdk1.4.1 and then tomcat 4.1.12 on my e:\. When I click START TOMCAT i recieve the error in a dialog box: Cannot find the file '-Djava.endorsed.dirs='(or one of its components). Make sure the path and filena

  • Payroll Calendar and Work Week Changes

    Hi  All, Good Afternoon. We are on SAP ECC 6.0 with EHP4. Currently our Biweekly payroll Work Week starts on Thursday and Ends on Wednesday . Our Management has decided to change the Work week start day will be  from Monday and will be ending on Sund

  • 10.5.4 Server/10.3.9 Client user home mounting issue

    Hi all, hopefully someone can help me out with this. I know this might be an AFP issue but if you read on you'll see why I think it might be Open Directory's "fault". I'm the admin at a school running Leopard Server with Leopard, Tiger, and Panther c