Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PierreL
Frequent Visitor

[PowerBI-Javascript] print() function not working properly on MS Edge

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);
});
}
}

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Will there be any response when you click print again after refreshing the web page?

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.