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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

report.print() does not print entire iframe, some parts are missing.

I have an page. I am embedding my powerbi report:


var config = {
type: 'report',
tokenType: 1,

accessToken: token,
pageView: 'fitToWidth',
embedUrl: embedurl,
id: reportid,

permissions: 7,
settings: {
   filterPaneEnabled: true,
   background: 0, //set 1 to remove grey background.
   navContentPaneEnabled: true,
   layoutType: 1,
   customLayout: {
      displayOption: 2

var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);


I have print button: 

<button type="button" class="btn btn-danger dropdown-toggle" style="margin-left:3px;" onclick="myfunction()">
   <span> Print page </span>


and function to print:


function myfunction() {
   var repcon = document.getElementById('reportContainer');
   var rep = powerbi.get(reportContainer);



My problem is, it is not printing all the iframe but a part of it only, like 300% zoomed-in print. Same problem with this person:


I am using Chrome. Could not find a way to handle it. Also explained here:


Any help would be appreciated. Regards.

New Member

Any update on this issue?

how come microsoft is ignoring this problem?

New Member

Any progress on this? I have the same problem with a React based application and the problem persists on all browsers. Media queries don't seem to have any effect on the parent div or the iframe. I haven't found any solution for this, only people who are struggling with the same problem.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.