18 Replies Latest reply on Jul 28, 2015 12:58 PM by creditunion123

    Print the last pages of a multi-page document

    creditunion123 Level 1

      I have a document that is dynamic in the total pages depending on what staff choose for answers to questions.

      I want to print just the last 22 pages as those will always be the last 22 pages


      I have the following code but when the program runs and the print dialogue box comes up it is always ticked to print all the pages

      I even tried to change the nStart and nEnd to positive numbers - the same thing

      what am I missing. The code to delete after printing works.



      bUI: true,
      bSilent: true,
      bShrinkToFit: true,
      this.deletePages(this.numPages-22, this.numPages-1);