These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Create button that will print to non-default printer automatically?

Rachel
Registered: Jul 9 2008
Posts: 14
Answered

Hi,

I'm trying to create script for a button that will automatically print to a non-default printer without having to go through the printer dialogue box.

I'm fairly new to javascript, but I understand the basics, but just haven't figured this out yet... I do have a button that will print to the default printer or open the printer dialogue box, but I need something that will remove the option for error on the user's part when printing to the correct printer.

Eg: The user opens the form and enters the data, then has the option to click the button "Print to Paper" which will send the document to the default printer, or the option to click the button "Print to Email" which will send the document to Adobe Distiller. (The form users only have Adobe Reader and Acrobat Distiller installed on their computers.)

Thanks for any help you can give!

Rachel

My Product Information:
Acrobat Pro 9.1, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi, you can create a button with some JS that assign the printout to a specific printer name.

Here is an example from the JS API reference.

var pp = this.getPrintParams();pp.interactive = pp.constants.interactionLevel.automatic;pp.printerName = "Adobe PDF";this.print(pp);

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Rachel
Registered: Jul 9 2008
Posts: 14
Hi,

Thank you very much! This is exactly what I was looking for.

Have a great evening!

Rachel