Article View: borland.public.jbuilder.java.language
Article #17090Re: Anyone out there willing to help?
From: Ross Dukeshier
Date: Sun, 20 Dec 1998 00:00
Date: Sun, 20 Dec 1998 00:00
51 lines
2812 bytes
2812 bytes
Before I start, just let me say thank you for responding. I was beginning to wonder if I'd somehow pissed everyone off out there 'cause I know there are other people dealing with this same situation. Unfortunately, it doesn't help me. I'm trying to use the new JDK 1.2 print stuff which, I think, now doesn't need the PrintJob class. The PrintJob class has problems on Windows in that Windows (not a Java problem) won't return the properties and won't accept the properties that you set in the getPrintJob method. One of the requirements for the application we're developing is to be able to set a default printer for a user and use that when they print. It isn't anything major, but printing was a royal pain on the system we're replacing and we'd like to make it simple, flexible, and not have to worry about it for a long, long time. Besides, I took the PrintJob class I wrote for JDK 1.1.6 and ran it the other day under JDK 1.2's JRE and it also had problems. For less than a page of text it never printed at all (after 50 minutes of printer flashing "Processing Job") and for 4 characters took 2 minutes to print out a blank page. It looks like everything in my code is doing what it's supposed to - except actually putting anything on the printed page. I'm saying that based on the book having a page, the print method of printable getting called, and the half a dozen ways I've set the graphics page including basically hardcoding its contents. There has to be something small I'm missing but I just don't see it. I've heard about Printlet. I'll go to the web page and check it out, but I'd guess it's going to have the same problems under JDK 1.2. Anyway, again, thanks for the response. Ross Dukeshier Dillan Fernando wrote in message <75j357$5ga10@forums.borland.com>... >Hi! > >I'm really not sure what you are trying to do exactly, but I have been using >Tookit.getPrintJob(Frame, string , properties); method for printing without >any problem. > >Hope I have answered your question. > >Oh BTW, we have written a cool JavaBean called PrintLet, for printing. >Download it at www.palmsoftware.com. It might help you. > >Regards > >Dillan Fernando >Senior Analyst >Palmware (Pvt) Ltd. >Sri Lanka >
Technical Details
Message-ID:
<75jciv$6fp4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75i7jh$5gi4@forums.borland.com> <75j357$5ga10@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5cf86e902afbf4b X-Google-Attributes: gidf74b3,public From: "Ross Dukeshier" <dukeman@flash.net> Subject: Re: Anyone out there willing to help? Date: 1998/12/20 Message-ID: <75jciv$6fp4@forums.borland.com> X-Deja-AN: 424247816 References: <75i7jh$5gi4@forums.borland.com> <75j357$5ga10@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language