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

Inconsistent Printing after first page on Dot Matrix Printer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • x86
    • windows_2000



      Name: jk109818 Date: 07/19/2002


      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)

      FULL OPERATING SYSTEM VERSION :
      Windows 2000 Professional with SP1

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Printer :TVS MSP 245

      A DESCRIPTION OF THE PROBLEM :
      I am Printing from JApplet using Java API for Printing.
      While Printing multiple pages on pre printed Stationary on
      DOT MATRIX Printer First Page is Printed properly but
      susequent pages are not printed at exact location.
      am using drawString() method of Graphics to Print a string
      at particular Location.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.implement printable interface
      2.draw any String at exact Location say drawString
      ("Test",25,25); in print method.Print it on Multiple pages
      3.Use Dot Matrix Printer

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Should Print at fixed Location on all the Pages

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      NO ERROR MESSAGE

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.print.*;
      import javax.swing.*;

      public class TESTPRINT extends JApplet implements Printable{

       int maxpage = 1;
       public int print(Graphics g, PageFormat pf, int pageindex) throws Exception{
         if(pageindex >= pageindex)
             return NO_SUCH_PAGE;

          pg.drawString("Test",20,30);
          return PAGE_EXISTS;
       }
      }
      ---------- END SOURCE ----------
      (Review ID: 153952)
      ======================================================================

            jgodinez Jennifer Godinez (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: