Maybe I'm wrong, but its been my experience that Printing has almost always been platform specific as FileIO, and L/F. These have always been issues for platform independent languages like Java. overcoming them is a headache but you know that going in. I'm not sure if this has been suggested yet, but its been my experience that MicroSlaveMaker owns 99% of the client market, knowing this I often write JNI modules that interact with MS developed objects that facilitate such tasks as Printing, IO, Etc.. Java FileIO is improving but native code will always be faster.? its a trade off for having an intelligent programming language designed for the people who use it. < steps down from his soapbox > Theres my 2 cents..now I don't feel left out..
-----Original Message----- From: Joseph Ottinger [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 10:39 AM To: jdjlist Subject: [jdjlist] Re: SV: Re: Windows Printing Run anywhere? I tried it on my Java-enabled watch and it failed. So much for that! On Fri, 30 May 2003, Jason Bell wrote: > This is all getting too short sighted for me. I can't figure out why folks > are easy about ditching the whole ethos of Java for a quick fix printing > thing via Runtime.exec(). > > A quick search on Google (via DMOZ) finds: > http://www.accusoft.com/imaging/imagegearjava/igj_description.asp > > Which also has a printing function. Write once, run anywhere I think the > slogan went? > > --- > Jason Bell > J2SE Editor - Java Developers Journal > e: [EMAIL PROTECTED] > > > > -----Original Message----- > From: Joseph Ottinger [mailto:[EMAIL PROTECTED] > Sent: 30 May 2003 15:24 > To: jdjlist > Subject: [jdjlist] Re: SV: Re: Windows Printing > > > That's okay, though, because nobody uses JPEG or GIF. > > On Fri, 30 May 2003, Paul Franz wrote: > > > 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 > > > > ------------------------------------------------------------------- > 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 > ------------------------------------------------------------------- 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
