Article View: borland.public.jbuilder.java.language
Article #18400Re: Printing Postscriptfiles Or Textfiles !
From: Richard Wilkman
Date: Thu, 25 Jun 1998 00:00
Date: Thu, 25 Jun 1998 00:00
47 lines
2156 bytes
2156 bytes
Ingo: Well, you'd have to bypass Windows to do it. In the DOS days I'd just copy the file to the printer port and it would go. For text, you'd have to flush the last page manually (at the printer) and for PS the printer had to already be in PS mode (a dedicated PS printer). Try Runtime.exec() with something like: c:\command.com /c copy filename lpt1 You might play with the copy command in a DOS box before doing this "un-supervised" via Java. Of course, this is completly non-portable. You could detect OS, and have a switch() of appropriate commands, I guess. Other methods use the OS to help, which means you don't get an un-interpreted file (at least under Windows). -Rich Ingo, Kopido wrote: > > Do someone know if there is a possibility to print out a > postscriptfile as it is. > Or is it possible to print a textfile as it is ? That means if it is > posible to send characters to a printer without interpreting them. > They should appear at the page whitout any styles or something else. > Or do someone know a book or something else where i can find a > solution for my problem ? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35927046.ECD443E0@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35923baf.3803651@123.0.0.50>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,14a281d8a8f7464e X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: Printing Postscriptfiles Or Textfiles ! Date: 1998/06/25 Message-ID: <35927046.ECD443E0@inprise.com> X-Deja-AN: 366004357 Content-Transfer-Encoding: 7bit References: <35923baf.3803651@123.0.0.50> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language