13 Replies Latest reply on Oct 10, 2008 7:52 PM by (BIll_Pepitone)

    Problem interating through dataobjects in Adobe 8 and 9 (1 of 1),

      I need help. I am having a problem with a script I previously wrote that works fine in Adobe 7 but not in Adobe 8 or 9. Instead of printing the main PDF then iterating through the attachments(data objects) and printing each one, like it does in Adobe 7, it prints the main pdf then only prints the first attachment (data object) when used in Adobe 8 or 9.

      Can anyone help?
      Well off to work on the issue...

      Thx!

      CODE:
      ___________________________________________

      PrintAll = app.trustedFunction(
      function ()
      {
      app.beginPriv();
      for(var i=0;i {
      var oDoc = this.openDataObject(this.dataObjects[i].name);
      if(oDoc)
      {
      oDoc.print({bUI:false, bSilent:true});
      oDoc.closeDoc();
      }
      }
      app.endPriv();
      })