Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm using powerbi-client and ngx-power-bi npm for Angular app. When I use print() function of a report instance, it worked well on Chrome/Firefox.
But on the MS Edge(latest version - Version 90.0.818.46 (Official build) (64-bit)), it worked for the first time only. Means if I click to open an embedded report, a print popup will be opened as expected, but if I close or click to print, after the print popup is closed, I'm no longer can open the print popup again as nothing happened when I click to print the embedded report. Bellow is the code which I'm using.
import {NgxPowerBiService, powerBiServiceFactory} from 'ngx-powerbi';
import {models, Page, Report, VisualDescriptor} from 'powerbi-client';
printReport() {
const report = powerBiServiceFactory().get(this.getCurrentReportElement()) as Report;
if (!!report) {
report.print().then((res) => {
}).catch(response => {
AppNotify.warning(response.detailedMessage);
});
}
}
Will there be any response when you click print again after refreshing the web page?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
22 | |
3 | |
2 | |
2 | |
2 |