FIX: PrintJob Output is Incorrect After First Page (182623)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q182623 SYMPTOMS
When printing text or graphics from Java using java.awt.PrintJob, the
output has different font sizes, line thickness', and other Graphics
attributes on different pages even when the same Graphic attributes and
fonts are used on all pages.
Also, subsequent pages do not reset the offset from a previous translate()
call. For example, if your paint() routine calls gr.translate(10,10), then
the first page printed starts at origin (10,10), the second page starts at
origin (20,20) and so on.
CAUSE
This problem happens with some printer drivers depending on whether the
driver resets state between pages.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the Microsoft virtual machine contained in the SDK for Java 3.0 and later.
Modification Type: | Major | Last Reviewed: | 7/23/2001 |
---|
Keywords: | kbbug kbDSupport kbSDKJava300fix kbSDKJava310fix KB182623 |
---|
|