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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.