> That's okay, though, because nobody uses JPEG or GIF. LOL !!!
Yes, and I agree with Jason !, but it feels good to have at least one solution that works while investigating a better solution, if the boss comes around and demands fast results... /stefan > > 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 > ------------------------------------------------------------------- Joseph B. Ottinger http://enigmastation.com IT Consultant [EMAIL PROTECTED] J2EE Editor - Java Developer's Journal [EMAIL PROTECTED] --- 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
