on 06-13-2006 9:06 PM
Hello,
I have generated, using Java code, a certain HTML file and wrote it to a certain location on my local machine. I would like now to automatically send this file for the default printer for printing, this way the user won't have to manually open the file and select
file->print from the browser window and then print it.
How can I acomplish this?
Hi,
Check out this link to know about printing a HTML document as it should display.
http://www.codecomments.com/archive257-2004-5-197072.html
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
good
how can you identify which file you r going to print and which file you r going to print.if you r going to print all the file from that particular location than you can do it through jsp, but i dont think it can be done automatically, the user has to select the particular location where you have stored the file in you hard disk and i will go for printing.
Thanks
mrutyun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roy,
This java code is it a servlet / JSP? or is it a standalone code generating file? Please elaborate on this as accessing defualt printer from Servlet / JSPs would require use of scripts where as accessing it from standalone running code might be different.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.