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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 7, 8, 9
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: