-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.4.0
-
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)
======================================================================