8 Replies Latest reply on Aug 12, 2008 5:57 AM by Bernd Alheit

    Print button code doesn't work

      I created a form with a button that runs a javascript to print the document (is there an easier way to do this in Acrobat (not LiveCycle)??).
      I read the scripting guide and added the following code to the button's Javascript:
      // get the printParams object of the default printer
      var pp = this.getPrintParams();
      // set some properties
      pp.interactive = pp.constants.interactionLevel.full;
      pp.colorOverride = pp.colorOverrides.auto;
      // print

      But the button doesn't work.
      What am I missing?