2 Replies Latest reply on Apr 1, 2009 3:24 AM by Doug.Norton

    Can I print a hidden document

    Doug.Norton Level 1
      I want to create a document with showingWindow = false and print it.

      var myDocument = app.documents.add(false);
      var myStory = myDocument.stories.item(0);

      myStory.contents = "Hello World!";
      myDocument.print(true);
      myDocument.close(SaveOptions.NO);

      The print dialog comes up but then InCopy crashes.