Sorry Phil, - I was being vague.

I am using PrinterJob, not PrintJob.
My problem is that I cannot read the 'Properties' setting from Windows
(e.g. to see which orienation the user has set in the print dialog)

So I prompt the user to ask if the printer is set to Portrait or Landscape,
then the call setOrientation(PageFormat.LANDSCAPE) (or PORTRAIT as
appropriate).

Now, I've seen bug number "4067405 - PrintJob disregards properties" and
(perhaps incorrectly) assumed that my problem was the same bug - though as
you say, one is AWT and and one is Java2D.

Apparently this is only a problem on Win32 (but not using Solaris I
couldn't say).

Are you saying that Java2D CAN check how the page is setup or how many
copies the user chose to print?  Maybe I stopped trying too soon when I saw
the above bug?

PT


At 10:14 14/05/99 -0700, Phil Race wrote:
>Paul,
>
>There are two printer APIs now in JDK.
>
>- The "1.1 Printing API" which can only handle 1.1 graphics.
>
>- The new "2D printing API" which is java.awt.print.PrinterJob and friends.
>
>So java.awt.PrintJob is part of the "1.1 Printing API" and so isn't
>related to 2D printing.
>
>I am aware of a proposal by the AWT group to implement what you are asking
for,
>and additional related features, but I don't believe any decisions have
>been taken. It certainly won't appear in the next maintenance release.
>
>BTW there is a bug with setting page orientation on the 1.2 printing api too,
>but I know that one is fixed for LANDSCAPE in the upcoming maintenance
>release.
>
>-Phil.
>
>> X-Authentication-Warning: capra.eng.sun.com: amith set sender to 
>[EMAIL PROTECTED] using -f
>> Date: Fri, 14 May 1999 16:04:31
>> To: [EMAIL PROTECTED]
>> From: "Paul Tetley" <[EMAIL PROTECTED]>
>> Subject: [java2d] Printing on Win32
>> X-MDaemon-Deliver-To: [EMAIL PROTECTED]
>> X-Return-Path: [EMAIL PROTECTED]
>> 
>> Can anyone (at Sun) throw any light on when PrintJob will work properly on
>> Win32 (ie let us read and set print properties such as page orientation.
>> 
>> Last time I looked it was #6 on the Top20 bug list, but there's been no
>> comment from Sun for almost a year!.
>> 
>> PT

---------------------------------------------------------------
Paul Tetley                                [EMAIL PROTECTED]
By Design Group Pty. Ltd.                  tel:  61 8 9330 8173
4 Blaikie Street, Myaree, 6154             fax:  61 8 9330 8174
Perth, Western Australia                   mob:    0411 869 653
---------------------------------------------------------------

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to