Previous | Next | (P-PDF) JavaScript
Topic: Change default printer when silent printing
Conf: (P-PDF) JavaScript, Msg: 157199
From: cmurialdo
Date: 12/29/2006 11:54 PM
I have a web application which prints PDF reports adding the following javascript in the documents:
var pp = this.getPrintParams();
pp.printerName ="";
pp.interactive = pp.constants.interactionLevel.automatic;
app.alert('Printer name ' + pp.printerName);
this.print(pp);
If I change the default printer (Start->Control Panel ->Printer and Faxes) and execute again the PDF report, it uses the old default printer. It doesn't happen if I use
pp.interactive = pp.constants.interactionLevel.full . In that case the default printer is always the correct one.
But I don't want to show a printer dialog, I need to do a silent print.
How can I refresh the default printer in silent printing?.