How can an applet print on clients printer a document available on server ??
Posted on 2005-03-16
I have an applet with code that uses javax.print API to lookup default printservices and print a particular document flavour ( in my case a GIF).
I compiled the applet class, signed it , and placed the resultant JAR file along with the jsp file that is using this applet to print(on clients printer).
This applet reades as input stream the GIF file that is to be printed. So, i put the GIF file also with the JSP file and the Applet signed Jar.
Now, My doubt is when this applet is loaded on to a browser (and suppose he trusts me) will this applet look for GIF file on client system or will it read the GIF file provided with the JSP on server ??
IF i want the applet to read the GIF available on server itself what should i do ??
How can i acheive printing on a client printer some document that is available on server ( say a text or a GIF file) ??