🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17245

Re: Remembering PrintJob properties

#17245
From: John P. McGrath
Date: Sat, 21 Nov 1998 00:00
34 lines
1939 bytes
Ross M. Dukeshier <dukeman@flash.net> wrote:

> That's not comforting by any stretch.  Just for clarification, 
> what do you mean by blowing off the JVM?  What does it do?  

Displays a popup message with something about access violation, and 
then the JVM is gone -- "jre" or "java" program terminated.

> I've got a program provided in the Java in a Nutshell examples
> book (~p. 177) that says it prints on Windows platforms (even
> corrects some of the bad reporting Windows does).  It has methods
> that appear to handle/track the margins, lines, pages, headers,
> etc.  I haven't tried it yet, so I don't know if it's a tease. 
> This is pretty important - could you please tell me more?

It is not hard to compute all of these values, but a program needs to 
be able to determine information about the printer that it is printing 
to.  For example, it needs to know the size of the printable area on 
the page.

The PrintJob class in Java 1.1 provides the size of the page, but not 
the size of the printable area.  In other words, it will tell you that 
the page is 612 pixels wide, but it will not tell you that you can 
only print in an area 540 pixels wide.

Of course, you can always work around these issues by keeping your own 
configuration information that says that the page is 540 pixels wide.  

-- 
Regards,

John P. McGrath
<mcgrath@enter.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.10c046c07c3efe17989722@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <364D0510.5229@flash.net> <MPG.10b71d424d901fe8989711@forums.inprise.com> <364DB92E.5986@flash.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,41afd4a2b38a2664
X-Google-Attributes: gidf74b3,public
From: mcgrath@enter.net (John P. McGrath)
Subject: Re: Remembering PrintJob properties
Date: 1998/11/21
Message-ID: <MPG.10c046c07c3efe17989722@forums.inprise.com>
X-Deja-AN: 414149835
References: <364D0510.5229@flash.net> <MPG.10b71d424d901fe8989711@forums.inprise.com> <364DB92E.5986@flash.net>
Organization: Software Consulting Services
Newsgroups: borland.public.jbuilder.java.language