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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
MattCalderwood
Responsive Resident
Responsive Resident

Report 'getPages' returns incorrect report-page dimensions if embedded container is reused.

Hi All,


I am adding some performance improvements to an embedded project that is using React.
One part of this, is reusing the report container for multiple reports rather than throwing it away and starting the render process from scratch (similar to bootstrapping: https://github.com/microsoft/PowerBI-JavaScript/wiki/Bootstrap-For-Better-Performance ).

This is all working well, with one exception..
A call to report.GetPages() will return the correct page array but with potentially incorrect defaultSize properties.

Whichever report gets rendered first... the width and height dimensions from this report will 'stick'!
Any further reports that get rendered, will pull back their correct page array - but each page will contain the dimensions from the first page of the previous/original report.

Anyone got any ideas what might be causing this? Or is this a bug in the embedding api?
Many Thanks,

Matt

1 ACCEPTED SOLUTION
MattCalderwood
Responsive Resident
Responsive Resident

This looks llike it is very closely related to another question that I raised, so i'm closing this one down.
If you are having the same/similar issue -> follow on this thread....

https://community.powerbi.com/t5/Developer/Reusing-IFrame-for-multiple-reports-results-in-incorrect-...

 

Thanks,
Matt

View solution in original post

1 REPLY 1
MattCalderwood
Responsive Resident
Responsive Resident

This looks llike it is very closely related to another question that I raised, so i'm closing this one down.
If you are having the same/similar issue -> follow on this thread....

https://community.powerbi.com/t5/Developer/Reusing-IFrame-for-multiple-reports-results-in-incorrect-...

 

Thanks,
Matt

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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