Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8061267

PrinterJob: Specified Page Ranges not displayed in Windows Native Print Dialog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b38

      Backports

        Description


        On Windows the PageRanges() attribute is not displayed. Test below :-

        import javax.print.*;
        import javax.print.attribute.*;
        import javax.print.attribute.standard.*;
        import java.awt.*;
        import java.awt.print.*;

        public class PRBug {

            public static void main(String args[]) throws Exception {
                PrinterJob job = PrinterJob.getPrinterJob();
                PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
                aset.add(new PageRanges(2,3));
                job.printDialog(aset);
            }
        }

        Note that OS X has the same issue (and more) but this bug only address Windows.
        For OSX we have these two bugs :-
        https://bugs.openjdk.java.net/browse/JDK-8061258
        https://bugs.openjdk.java.net/browse/JDK-8037969

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: