Also, something that should be mentioned is that earlier versions of Windows MSPAINT.EXE don't support JPEG or GIF only BMP.
Paul Franz ----- Original Message ----- From: "Jason Bell" <[EMAIL PROTECTED]> To: "jdjlist" <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 7:20 AM Subject: [jdjlist] Re: SV: Re: Windows Printing > My basic rule of thumb. > Never trust the OS to do what you want it to do with Runtime.exec(); > > Let me put it this way, there has to be a better way.... > > Jase Bell > > Jason Bell > J2SE Editor - Java Developers Journal > e: [EMAIL PROTECTED] > > > -----Original Message----- > From: U. Penski [mailto:[EMAIL PROTECTED] > Sent: 30 May 2003 11:20 > To: jdjlist > Subject: [jdjlist] Re: SV: Re: Windows Printing > > > Hi, > [sounding a bit "consultish" again, sorry] > Jason shouldn't use Postscript to print documents with major image content, > if this can be avoided : > As you might already know Postscript converts images to a text > representation , like the RichTextFormat (RTF). > This causes these "ugly" multi-megabyte files mentioned by him. > > Anyway, I looked in WindowsME offline-help for a way to print .ps via the > command line (or "Runtime.getRuntime().exec..." ). > Just printing a textdocument via .ps was mentioned resp. found by me: > "copy con lpt1" > "showpage" > > sincerely, > U. Penski > [EMAIL PROTECTED] > http://uuhome.de/penski > > ----- Original Message ----- > From: "Stefan Carlsson" <[EMAIL PROTECTED]> > To: "jdjlist" <[EMAIL PROTECTED]> > Sent: Friday, May 30, 2003 10:08 AM > Subject: [jdjlist] SV: Re: Windows Printing > > > > > > Hi Jason ! > > > > I just saw this conversation, and one solution is to use mspaint.exe to > > make the printing in the background... :) > > > > public class Print { > > String file = "C:\\WINNT\\SYSTEM32\\mspaint.EXE /p c:\\HTMLRGB.GIF"; > > > > public Print() { > > try { > > Runtime.getRuntime().exec(file); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > } > > > > public static void main(String[] args) { > > new Print(); > > } > > } > > > > > > Hope it helps ! > > > > Regards > > Stefan > > > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > http://www.sys-con.com/fusetalk > > > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > http://www.sys-con.com/fusetalk --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] http://www.sys-con.com/fusetalk