• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Custom Dialog to Print Dialog

New Here ,
Jan 26, 2021 Jan 26, 2021

Copy link to clipboard

Copied

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.
TOPICS
Print , Scripting

Views

118

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 26, 2021 Jan 26, 2021

Copy link to clipboard

Copied

LATEST

Is you custom interface ScriptUI based or dialog class based ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines