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

can't select paper with PrinterJob.pageDialog() or Paper.setSize()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • 2d
    • generic
    • generic



      Name: clC74495 Date: 07/07/99


      How can I select paper on printing?

      I can select paper on Win32 page dialog, and I got correct
      PageFormat by following code.
      format = job.pageDialog(format);
      job.setPrintable(this, format);
      job.print();
      but printer always print A4 paper only.

      And following code does not work too.
      format.getPaper().setSize(w, h);
      job.setPrintable(this, format);
      job.print();

      (Review ID: 85207)
      ======================================================================

            prr Philip Race
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: