Instead download open in new tab

0

I'm using visualize.js and when I export a report in PDF format, I want instead of download the report opens in a new tab.

I use the next code to download the report:

    report.export({
      outputFormat: 'pdf'
    }).done(function (link, request) {
      var url = link.href ? link.href : link;
      window.open(url);
    }).fail(function (e) {
      alert(e.message);
    });

Do you have any suggestion?

carlos.tax's picture
Joined: Jan 26 2021 - 8:35am
Last seen: 5 months 2 weeks ago

0 Answers:

No answers yet
Feedback