Forum Discussion
datavigilante
8 years agoHelper I
Possible to display embedded reports in full screen mode?
Hello all, I have the App Owns Data sample running, but was wondering, is it possible to allow the embedded report to be displayed in full screen mode? Any assistance would be greatly appr...
- 8 years ago
Don't know if you solved this or not, but it is possible to open embedded reports in fullscreen mode using javascript:
1. Add a button to the page:
<button id="myLink" onclick="fullscreen()">Fullscreen</button>
2. Add the javascript to get the report container id and open it in fullscreen mode:
<script type="text/javascript"> function fullscreen() { // Get a reference to the embedded report HTML element var embedContainer = $('#reportContainer')[0]; // Get a reference to the embedded report. report = powerbi.get(embedContainer); // Displays the report in full screen mode. report.fullscreen(); } </script>Hope this helps!
matthills
8 years agoNew Member
Don't know if you solved this or not, but it is possible to open embedded reports in fullscreen mode using javascript:
1. Add a button to the page:
<button id="myLink" onclick="fullscreen()">Fullscreen</button>
2. Add the javascript to get the report container id and open it in fullscreen mode:
<script type="text/javascript">
function fullscreen() {
// Get a reference to the embedded report HTML element
var embedContainer = $('#reportContainer')[0];
// Get a reference to the embedded report.
report = powerbi.get(embedContainer);
// Displays the report in full screen mode.
report.fullscreen();
}
</script>Hope this helps!
datavigilante
8 years agoHelper I
Thanks matthills! We are working through some other issues right now, but will try this as soon as we can!
David