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

PrintJob.getPageDimension() returns wrong value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_95

      Description



      Name: mc57594 Date: 03/07/97


      PrintJob.getPageDimension() returns wrong value.

      I have Epson Style Color ESC/P2 printer.
      Under jdk1.1b2, this function returns 816 * 1056 (I think it is right).
      Under jdk1.1f, this function returns 72 * 36 (definatly wrong).

      company - Ziya Corporation , email - ###@###.###
      ======================================================================

      [sheri.good@Eng 1997-03-19] This looks like the same bug.

      Category: java
      Subcategory: classes_awt
      Bug/rfe/eou: bug
      Synopsis: When printing, PrintJob.getPageDimension(), returns wrong Dimension
          if the user choose landscape
      Severity Impact: (internal)
      Severity Functionality: (internal)
      Priority: (internal)
      Description: When I request a print using the following sequence:

      private PrintJob ThePrintJob = null;
      private Graphics PrintGraphics = null;
      private Dimension PageSize = null;

      ThePrintJob = Toolkit.getDefaultToolkit().getPrintJob( MyFrame,
                                                    "Printing",
                                                    ( Properties )null );
      PrintGraphics = ThePrintJob.getGraphics();
      PageSize = ThePrintJob.getPageDimension();

      It is not reflected in PageSize if the user choose Landscape
      instead of Portrait in the print properties dialog. The page size
      returned always suggests that it is a Portrait print. This gives
      me some problems when I try to determine when to issue a page
      break.

      Operating system: Windows NT 3.51 SP5
      company - Volvo Data Corp. , email - ###@###.###
      Work around: No workaround found.

      Comments:
      customer_rec: new
      Company: other
      Employee:Nils Lagerqvist
      Release: jdk11
      Hardware Version: i586
      O/S version: win_nt_4.0
      User Role: D
      User Type: E
      Sun Contact: (internal)
      end_customer_rec:
      BUG_END

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmendenhsunw David Mendenhall (Inactive)
              Reporter:
              mchamnessunw Mark Chamness (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: