Hello,
I tried this js code (founded to http://jsfiddle.net/gh/get/library/pure/ernestoongaro/vis.js-intermediat...):
visualize({
auth: {
name: "joeuser",
password: "joeuser",
organization: "organization_1"
}
}, function (v) {
var reportExports = v.report.exportFormats;
console.log(reportExports); //print export formats
report = v.report({
resource: "/public/Samples/Reports/AllAccounts",
container: "#container",
error: function (error) {
console.log(error);
}
});
window.reportExport = function reportExport() {
report.export({
outputFormat: "pdf"
})
.done(function (link) {
window.open(link.href); // open new window to download report
})
.fail(function (err) {
alert(err.message);
});
}
});
It's runs ok with IE9 but doesn't work with IE7. Error is near the word report of "report.export": identifier expected; How I can resolve it?