Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


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?.


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories