Skip to main content
Participant
January 26, 2021
Question

Custom Dialog to Print Dialog

  • January 26, 2021
  • 1 reply
  • 194 views

What I am hoping to do is have a dialog that pops up and asks what branch you would like to print. When selected you click ok and it delivers you to the print dialog box with the presets filled out ie: 

app.activeDocument.printPreferences.pageRange = "1,2";
app.activeDocument.print();
but I am having trouble running these two lines from onClick event on the print button in the custom dialog.
 
Why: I have a large file with many pages of branch info and a front cover. I would like the Jr. designer to be able to print page 1 and 13 as that is the info for the specific branch without having to find the page manualy.
 
Any help is much apprecited.
This topic has been closed for replies.

1 reply

Loic.Aigon
Legend
January 26, 2021

Is you custom interface ScriptUI based or dialog class based ?