gurpreet_ka 0 Newbie Poster

hi all,

I have separate action class and view(xhtml) in my project. i have a link in xhtml that opens a file. This file can be a word document or a pdf document or may be some other form but these two forms are confirmed. My requirement is that thon click of button the document should silently go to the printer irrespective of the form. If silent printing is not possible then atleast the document should open along with a print dialog box.

Documents are placed at server location, so some client side java tech is required to implement this. i am trying with javascript. Javascript [window.print()] is working fine with PDF documents but for word documents,not print dialog box is coming instead save or open dialog box is coming.


thanks,