Forum Discussion
blumi78
8 years agoHelper I
Custom Visual: Using Javascript Promises in Internet Explorer 11
IE 11 still doesn't support ES2015 features like Promises. My default approach here is to use a Polyfill lib, include it in "externalJS" section of pbiviz.json and add "es2015" as lib to tsconfig...
tpatel
8 years agoFrequent Visitor
not yet. Below is the function that I have.
function Print() {
var embedContainer = $('#reportContainer')[0];
// Get a reference to the embedded report.
report = powerbi.get(embedContainer);
// Trigger the print dialog for your browser.
report.print()
.catch(function (errors) {
Console.log(errors);
});
}
v-viig
8 years agoCommunity Champion
Do you still get an error related to Promise?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals