views:

255

answers:

0

my requirement is to directly print either pdf or ms doc file through java web application. client don't even want to know where the file is saved. On click of print button,a file is created and it is saved somewhere. After the creation,i want the file to automaticaaly go to printer.

i have tried :

  1. javax.print for pdf. Here printer is throwing error.
  2. javascript (window.print) for pdf. Here print dialog box is not coming on the opened pdf document.
  3. javascript ({bUI: false, bSilent: true, bShrinkToFit: true}). But with this the problem is that document needs to be opened before page actually goes to the printer.

its urgent........