Skip to main content
Inspiring
April 21, 2017
Question

export story in button click

  • April 21, 2017
  • 1 reply
  • 703 views

Hi

I don't know why but when i want to export incopy inside button click event it don't work

How to export file after button click

closeBtn.onClick = function() {

  var stories =  getStories(app.selection); // get all selection stories

  for (var i = 0; i < stories.length; i++) {

      var abc = stories.exportFile(ExportFormat.INCOPY_MARKUP,'c:\\1\\tmp.icml');

  }

    artDialog.close();

  }

Thanks

This topic has been closed for replies.

1 reply

Loic.Aigon
Legend
July 6, 2017

closeBtn.onClick = function() {

w.close(1);

}

if ( w.show()==1 ) {

     //let's execute some javascript

}