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

Print button to bring up printer selection

shawnash
Registered: Dec 16 2009
Posts: 48

Hello,
 
I have a print button with the following code to print only the first page of my form:
 
this.print({bUI:false, nStart:0, nEnd:0, bSilent: true});
 
It works fine, but some users don't want to print to their default printer - is there a way to make this button bring up the printer selection screen?
 
Thanks in advance for you help.
 
Shawn

My Product Information:
Acrobat Standard 5.x or older, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Change bUI to true.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

shawnash
Registered: Dec 16 2009
Posts: 48
Thank you so much - that worked. The only thing is, that I have one print button that prints the first page only and one that prints all pages. When I changed BUI to true on the one that prints only the first page, it didn't have printing only one page selected, but when set to false it prints only first page. Is there a way to make this happen when the printer select page comes up?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
From the reference file:
"If nStart and nEnd parameters are used, bUI must be false."

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

shawnash
Registered: Dec 16 2009
Posts: 48
Ok, thank you.