Printing Orientation Setting from Properties... Button on Print Dialog

I am trying to add printing to a graphics application I have developed, and have noticed that if I use the standard code to open the Print dialog:
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(new PagePrinter(0));
    if (printJob.printDialog()) {
        try {
            printJob.print();
        } catch (Exception ex) {
            ex.printStackTrace();
    }the Print dialog appears, and if I click the "Properties..." button for the selected printer (I am testing with an HP 1210), the printer-specific properties dialog allows me to select portrait or landscape orientation, but if I change this setting, click OK, then click Print in the Print Dialog, the change to the orientation setting seems to be ignored,. For example, if Ithe default orientation is Portrait, but I use this setting to change the orientation to Landscape, the PageFormat information passed to my Printable still is based on Portrait orientation.
The fact that this setting appears to be ignored would be very confusing to a user of my program. Is there a solution to this problem?
I have the same problem if I use the Book class, in that I have to indicate the page format I want to use for each page when I call "append" on my Book instance, and when the Print dialog is subsequently opened, if I click "Properties..." and change the orientation, this change is ignored.
It there any recommended way to handle this?

I have the same problem too. Anyone got a solution?
/Johan

Similar Messages

  • In Windows 7 document printing the "Properties" button does not open the print selection list.

    New computer OS is Windows 7. Old computer OS was Windows XP.
    HP Officejet 4500 Wireless Printer G510n-z printed documents as I chose using the Porperties button on the old system. Under the new system the Properties button does nothing and I must print using "general printing" instead of the setting I wish to use. How can it be fixed?

    When something works one day, but not the next, then something has changed. The fonts issue is an easy one, but with no new ones, then it is possible that one, or more, of the installed fonts has become corrupted.
    While fonts are not the only possibility, they ARE a common problem. Titler is very sensitive to fonts, either corrupt ones, or badly written ones, that are not exactly "corrupt."
    Good luck,
    Hunt

  • Malfunctioning printer call to DLBAPRP,DLL FOR DELL PRINTER A940, ERROR 126. This error occurs when pressing properties button. Is there a patch to fix this?

    This error does not occur with any of my other programs employing this printer when pressing properties button. The complete error message I get is as follows:
    '''DELL PRINTER A940 PROPERTIES'''
    Function address 0x0 caused a protection fault (exception code 0xc0000005). The application property sheet page(s) may not function properly.
    |OK|

    Perform the suggestions mentioned in the following articles:
    * [[Firefox prints incorrectly#w_reset-firefox-printer-setting|Reset Firefox Printer Setting]]
    * http://kb.mozillazine.org/Problems_printing_web_pages
    Check and tell if its working.

  • Print Properties button is disabled

    Hi
    I am using open source editor jEdit (version 4.3 pre15) with Java 1.6.0_11. I have two problems with printing:
    1) When I select File | Print, the Print window appears but the 'Properties' button is greyed out. This is true whichever printer I select. The button is enabled in the print dialog of other applications (not necessarily Java based apps).
    2) When I change the printer selection in the dialog, the application hangs for about 30s before showing the change of selection.
    I do not know whether these problems are caused by an application (jEdit) bug, an incorrect Java option setting, or incorrect Printer settings on the network. But the first problem is definitely recent (i.e. not seen by me in jEdit before) and occurs on several computers.
    Please can anyone suggest a reason for this behaviour?
    Best regards
    David

    I confirm print dialog issue with a java application I am developing myself. "Properties..." button is greyed out when (PrinterJob)foo.printDialog() is invoked.
    Bump.
    System details:
    Ubuntu 8.10
    CUPS 1.3.9-2ubuntu9.1
    java-6-sun-1 1.6.0.10
    Printer is Brother HL2700CN using latest BRStript-3 .PPD driver.
    Edited by: Defrector on May 19, 2009 2:06 PM

  • When printing an email, the "properties" button doesn't open the hp printer's properties

    The "properties" button in the "print email" window does not take me to the Hp C7280 Printer Properties window. I keep pushing the button but it never executes the transfer. All other buttons and options in the print window work.
    == This happened ==
    Every time Firefox opened
    == just started a week or so ago. I haven't made any changes, and previously it was working fine

    The issue is likely caused by one of your add-ons. Restart Firefox with Add-ons Disabled to check if that's the case.
    * [[Troubleshoot Firefox issues using Safe Mode]]
    If the problem goes away in Safe Mode, you can either try to determine which add-on is to blame, or you can Reset Firefox and get rid of them all.
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Reset Firefox – easily fix most problems]]
    As for Firefox's appearance, you can install the Classic Theme Restorer add-on.
    * https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    * [[How to make the new Firefox look like the old Firefox]]

  • The ability to output halftones (separations) and set screen angles, etc., from the CS5 print dialog

    I output films from photoshop that are used to expose silkscreens.  often, i output halftones and up until CS5 i've done this from the print dialog where i can also set my screen angles and dot shapes, press print and off it goes to my printer.  It has been suggested to me in the photoshop macintosh forum that i might simply build a script to convert the individual channels to bitmaps at the printer resolution, angle, shape and then print that.  unfortunately, this method results in less accurate screens and fails to take advantage of what my postscript printer can do.  this is the only reason i have a postscript capable printer.  i used this workaround method before i bought the postcript printer and the results just weren't very good.
    my workaround is to keep CS3 installed and print from that.  this is a hassle and less than optimal.  i was quite surprised to find that this "feature" which has been available in photoshop for many years suddently disappeared.  please give some thought to bringing it back.  i expect that i'm not the only shop that's going to miss it.
    you can see some commentary on this in the ps mac forum.  look for "setting line screen in CS5."
    kenb

    Hey Ken, I personally haven't used that feature in years but it was 
    very useful when printing separations for t-shirts so I feel for ya. I 
    noticed it's still in CS4 if that helps. Also, you may try 
    experimenting with the following filters:
    RGB FILES:
    Filter > Sketch > Halftone Pattern
    RGB or CMYK FILES:
    Filter > Pixelate > Color Halftone
    GRAYSCALE FILES:
    Image > Mode > Bitmap > Method > Halftone Screen
    Also, InDesign allows you to print custom screen angles and line 
    rulings but not dot shape.
    Good luck!
    Terry

  • HT3669 Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this opt

    Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this option?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • Auto populate blank text fields with n.a from a button or on print out.

    This seems straight forward but I cannot find an existing questions on this topic.
    I would like to add a form function that will fill any blank text fields with n.a. I do not want to use the default field value as I think it will cause confusion and cannot be applied for text fields formatted for dates. Is it possible to run a script that can do this? It would be OK if the action was triggered from a button or print activity after the rest of the form has been completed.
    Any thoughts would be appreciated.
    Thanks

    The question is whether your form is used only for filling out on screen (and not as a level 0 form, being printed out and filled out manually).
    If so, why not make the default value of the concerned fields to be "n/a" (or whatever you want to name them). That would relieve you from any validating before printing.
    Otherwise, you could maintain a list of field names which should get the n/a value if empty. This list would be an array.
    Your code in the willPrint event (if you want to have it reliably) would then look like this:
    for (var i = 0 ; i < nafieldarray.length ; i++) {
    if (this.getField(nafieldarray[i]).value == this.getField(nafieldarray[i]).defaultValue) {
    this.getField(nafieldarray[i].value = "n/a") ;
    HTH.
    Max Wyss.

  • Enable Properties button of Print Dialog - URGENT

    How to Enable Properties button of Print Dialog, as itis disaled by deault. URGENT

    the pic as follow:
    http://home.attbi.com/~aokabc/ABC/help/Print.htm
    Do you see the general tab--Properties... Button at the right of printer name!My question is how to make it ebable!!
    Thanks

  • How to print specific pages of a pdf from a vb 2013 program using a print dialog

    Hi.  I am using the acrobat sdk to display pdfs from within a vb 2013 program, because the pdfs are large and we have developed indexes on certain columns.  The indexes are stored in SQL tables.  My program has a search window which allows the user to search for a value and displays all the pages on which this value appears in the indexed column in a listbox.  By double-clicking on the desired value in the listbox, the user can go to the selected page and column.  However, the user also needs to be able to highlight one or more of the pages in the listbox and print these pages.  I could do this silently using AcroExchAVDoc.PrintPages, but the user also needs to have a print dialog displayed in order to possibly select a watermark to be printed on the pages.  I also need to default the orientation of the pages depending on the document.
    I have reviewed the sdk documentation and also searched in Google and on this site but have not found a way to do this.  Does anyone have a suggestion?  Thanks for any help you can provide.
    Mary

    Hi.
    I did try using the printParams feature and it worked, but since I need to be able to print sets of non-consecutive pages,  I end up having to bring up the print dialogue multiple times and have the user set watermarks each time. 
    I decided to just create a new pdf in a temp directory containing the selected pages and open this document in a new window.  This works well and allows them to use the print button on the window to print, bringing up the print dialogue just once.  However, since I need to open the document in a way that shows the print button, I am using OpenInWindowEx, with AV_DOC_VIEW, and the option PDUseBookmarks or PDUseThumbs, rather than PDUseNone.  This displays a toolbar which also includes icons for creating a new pdf, deleting pages, etc.  I do not really want to include these icons on the toolbar.  Is there a way to remove unwanted icons from the toolbar, or make them invisible?
    Hope this makes sense.  Thanks for your help.
    Mary

  • Show the print dialog when running a report from an Oracle form.

    I would like to be able to print an Oracle report from an Oracle form but
    in addition show the print dialog. My PL/SQL code is shown at the bottom of this post.
    I have set the 'printjob' system parameter to 'YES' in the
    report and I can bring up a print dialog using the reports runtime.
    However, as soon as I run it from my form I lose this capability. Setting
    'printjob' to 'YES' in the code has no apparent effect.
    Many thanks,
    Ben
    -- Launch a report
    DECLARE
      v_pl_Id   paramlist; -- parameter list
    BEGIN
      -- add the parameters to the list.
      v_pl_id := CREATE_PARAMETER_LIST ('summary');
      ADD_PARAMETER (v_pl_id, 'destype', text_parameter, 'PRINTER');
      ADD_PARAMETER (v_pl_id, 'printjob', text_parameter, 'YES');
      -- run the report
      RUN_PRODUCT (
        reports
      , 'C:\Test Reports\Test.rep'
      , synchronous
      , runtime
      , filesystem
      , v_pl_id
      , NULL
    END;

    At 10g not 9i using a bean area on my canvas implementing the following class ...
    import java.awt.Frame;
    import java.awt.JobAttributes;
    import java.awt.PrintJob;
    import java.awt.Toolkit;
    import javax.swing.JPanel;
    import java.io.*;
    import oracle.forms.ui.VBean;
    public class Select_Printer extends VBean {
    public Select_Printer()
         super();
    public String getPrinterName()
    String PrinterName=null;
              JobAttributes jobAttributes;
              try{
                   jobAttributes = new JobAttributes();
                   jobAttributes.setDialog(JobAttributes.DialogType.NATIVE);
                   Frame dummyFrame = new Frame();
                   PrintJob pJobDialog = Toolkit.getDefaultToolkit().getPrintJob(
                   dummyFrame, "Printtest", jobAttributes, null);
                   PrinterName = jobAttributes.getPrinter();
              } catch (Exception e) {
                   System.out.println("Printer error!");
              return PrinterName;
    public static void main(String[] args)
    Select_Printer select_Printer = new Select_Printer();
    System.out.println(select_Printer.getPrinterName() );
    }

  • Save as PDF from printer dialog requires two tries

    When trying to save a file as a PDF from the printer dialog it takes two tries. When the save dialog appears I hit return and it immediately returns with nothing saved. The second time the file is saved normally. According to Adobe this is being caused by Apple PDF Creator; however my selected printer is Adobe PDF 9.0. I have retried resetting the printer using the System Preferences panel with no change. This is really annoying, any suggestions?

    Thank you. I would go back to Adobe and reiterate that this doesn't happen when a non-Adobe printer is active. They are probably not setting something up correctly the first time through. Also, unless AdobePDF offers something crucial when creating PDFs, you could switch the printer as a workaround.

  • Pages button  in printer dialog box  is deactivating while taking print ?

    Hello exports,
    while taking print abap reports (developed using smartforms) pages buttoon (from- to) in printer dialog box
    is by default is deactivating .How to activate this button ? who will do this one (Abaper or basis guy).
    pls help me in this.

    Hi,
    So, as you see a field "from ... to ...", I think you are talking about the "background print parameters" dialog (this is not the smart forms print dialog, which contains field "page selection").
    I don't understand. "Pages from ... to ..." is always displayed, and the user can enter them manually. Do you want to enter pages programmatically?
    What is your code or the steps to display this dialog? Is it fully standard or do you use GET_PRINT_PARAMETERS programmatically?
    Sandra

  • PDF button not enabled in Print dialog box

    When I am in any application that allows printing and I select File > Print, the Print dialog box opens, but I can't select the PDF button (or the Preview button for that matter). I can see the buttons, but they are not selectable.
    I have a $HOME/Library/PDF Services folder set up properly.
    How can I enable the PDF button for printing?
    (And for the quinella, the Preview button in the same dialog box.)

    I am sorry my post got corrupted as these new Discussions format modifications can muck up when using the ~ (tilde) symbol. !!!!!
    What I wanted you to do was go to the Home folder, then Library, then Preferences and locate two files,
    com.apple.print.custompresets.plist
    com.apple.Preview.plist
    and delete those two files in particular, not your document that you are trying to preview. My mistake for omitting this information.
    So please try this suggestion.
    regards roam

  • Is it possible to prevent the Print Dialog from waking printer?

    Hi all,
    Although I have a printer attached to my iMac, most of the time I just use the Print Dialog to 'Save as PDF' rather than to actually print. However, as soon as I hit cmd-P the printer is woken up, even though I never use it. Is there an option somewhere that will tell OSX to only wake the printer if I actually send the document to the printer?
    thanks,
    d

    Hi there,
    I think you could create a dummy IP printer, using Generic Postscript for the driver, and set it as your default printer. Then when you print to pdf from your app, having this dummy printer selected may stop the USB physical printer from waking.
    To create the dummy, open Print & Fax and click + to add. Select IP and LPD for the protocol. Enter an IP address of 10.0.1.50, leave the queue name blank, change the Name to Dummy and select Generic Postscript in the Print Using menu. Click Add to complete the queue creation.
    Now set this printer as the default and try printing. Hopefully this stops the real printer from waking.
    One last note. Just remember to change the printer in the Print dialog when you do need to print on paper.
    Pahu

Maybe you are looking for

  • HT5312 How do I change my email address if I put the wrong one

    I put a wrong email address for the recuse and I'm trying to change it to the right one. can u help me change <E-mail Edited by Host>

  • Trust List 8.5 BE to 9.1

    Dears Currently we are running in 8.5 BE. i installed fresh 9.1 and exported all phones from 8.5 to 9.1 successfully. after rebooting the phones they are registering successfully to 9.1 but they are pulling the new load file of 9.1 they are still on

  • Performance and bios problems with K8T

    Hi,  I recently installed a new graphics card (6800 LE) but when I went to benchmark it the scores were way down, 6377 in 3dmark 03 and 28,421 in Aquamark, and that was after I had installed the latest bios and mobo drivers from MSI, unlocked the car

  • HT1222 Why, after an update, I lost all my private data?

    Hi, I am living in Denmark, and these days I'm in California for work/holidays. I stupidly accepted the update proposed by my phones (in the setting menu). There was no warning at all about the fact I will need to conect it to iTune after that, other

  • BSP Changes in built-in SAP applications

    Hello all, I am aware of BSP programming and had developed couple of applications using the same. But those were independent applications fetching data from SAP data dictionary. Now I am working on SAP SCM where there are built-in pages and I wanted