Article View: borland.public.jbuilder.java.language
Article #17827Re: PrintJob.Graphics.drawString() won't accept or recognize form feed (?)
From: News
Date: Sun, 27 Sep 1998 00:00
Date: Sun, 27 Sep 1998 00:00
34 lines
1469 bytes
1469 bytes
Hi!
We have a vool product which handles printing in Java. Check it out at
www.palmwsoftware.com/test.
Regards
Dillan Fernando
Senior Analyst
Palmware (Pvt) Ltd.
David Jensen wrote in message <6tufu2$bqo3@forums.borland.com>...
>I'm doing some crude but effective printing of the contents of a jTable
>using the code snippet below.
>
>public PrintJob pj;
>public Graphics aGraphicsObj = pj.getGraphics();
>aGraphicsObj.drawString(vsHeaderString, XPrintPosition,
>HeaderPrintPosition);
>
>My problem is that I can't print on subsequent pages because the
>drawString() method won't accept or recognize the form feed character
("\f")
>as part of the first (String) parameter to this method.
>
>Is there a better way to do this, or am I overlooking something here? Any
>comments, suggestions, or ideas on this matter would be greatly
appreciated.
>
>Thanks in advance,
>David
><jensend@txen.com>
>
>
Technical Details
Message-ID:
<6ulc5u$e8q4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6tufu2$bqo3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4a8341e19e2ed337 X-Google-Attributes: gidf74b3,public From: "News" <dillan@geocities.com> Subject: Re: PrintJob.Graphics.drawString() won't accept or recognize form feed (?) Date: 1998/09/27 Message-ID: <6ulc5u$e8q4@forums.borland.com> X-Deja-AN: 395302909 References: <6tufu2$bqo3@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language