2 Replies Latest reply on Feb 26, 2008 6:35 AM by (BrunoJS)

    Close Document

      I have a form at the Document Level which is run through

      This form has two buttons ok and cancel
      If the user press "ok" I would like to close the dialog AND the PDF document that contains the dialog.
      I tried the following but I get nothing:

      if("ok" ==app.execDialog(oDlg1))
      console.println("Ok exported");
      var d=app.activeDocs;
      for (var i=0; i < d.length; i++)
      console.println("closed 1");

      In the console I can read "Ok exported" but I have no output "closed 1".

      I tried then app.execMenuItem("Close"), but I get an alert : "This action cannot be performed"
      Any hint to close the pdf?