🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Simplest way to print reports in java1.4?

#543
From: Magnus
Date: Fri, 01 Jul 2005 16:21
20 lines
1809 bytes
Hi,

I have been looking for some time on how to achieve a simple report.
At this moment I don't care about headers, footers, different fonts etc.

I use jDataStore and would just select the data that I need and print...

I was hoping that creating a jTextArea, using moonscape font, and (kind 
of the old days) just print text - line by line, and the just send this 
to the printer.

Anyone seen or know how to achieve this with minimal code. Is there any 
books that address this? I have three books and only one even talk about 
it but the example to print text is from 97 for 1.1.

The only thing I have found is how print nice pictures on one page and a 
PrintFramework (JavaWorld - 2001). This is a great start if I need a 
"complete" print system but a bit complicated for my needs now.

Magnus
Technical Details
Message-ID: <42c56d8b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,a8485db9e079ecd9,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 01 Jul 2005 12:21:43 -0400
From: Magnus <magnus_bjorkman@iwon.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en, sv
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Simplest way to print reports in java1.4?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.99.107
Message-ID: <42c56d8b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120234891 71.0.99.107 (1 Jul 2005 09:21:31 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail