2 Replies Latest reply on Jun 29, 2011 11:30 PM by praveen mds

    How to get a txt file output of Bookmarks or Annotations

    praveen mds Level 1

      I just tried to get a txt file report for the bookmarks. but its not working.

      var root = this.bookmarkRoot;
      var Report = new Report();
      PrintBookmark(Report, root, 0);
      Report.save("/c/temp/newreport.txt");
      function PrintBookmark(Report, Bm, nLevel)
      {
       Report.writeText(Bm.name);
       if (Bm.children != null)
       { 
        for (var i = 0; i < Bm.children.length; i++)
        { 
         PrintBookmark(Report, Bm.children[i], nLevel + 1);
        }
       }
      }

       

      This is the result i got in console.


      NotAllowedError: Security settings prevent access to this property or method.
      Report.save:5:Batch undefined:Exec

       

      Whats wrong i did?