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

can not print selected pages of web page

XMLWordPrintable

    • web
    • x86_64
    • generic

        A DESCRIPTION OF THE PROBLEM :
        when choosing page 1,2 everything is ok
        but page 3,4 are not printed - always is printed page 2
        to print pages 3,4 you must print whole document

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        load simple web page print , open print dialog, choose to print page nr 3



        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        printed page nr 3 or 4
        ACTUAL -
        printed page nr 2

        ---------- BEGIN SOURCE ----------
        private void handlePrintButtonAction(ActionEvent event) {
                PrinterJob job = PrinterJob.createPrinterJob();
                if (job != null) {
                    Window window = webView.getScene() != null ? webView.getScene().getWindow() : null;
                    if (job.showPageSetupDialog(window)) {
                        if (job.showPrintDialog(window)) {
                            webView.getEngine().print(job);
                            job.endJob();
                        }
                    }
                }
            }


        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        cannot - must print everything

        FREQUENCY : always


              bchoudhary Bhawesh Choudhary (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: