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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7, 8, 9
    • client-libs
    • None
    • 2d
    • b38


        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

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

                Created:
                Updated:
                Resolved: