My application is web based. I use your code and the result is the same that my print dialogue is coming in Server side when the request is from client. I think may be i can use applet but i don't try it yet.