Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
We are using PowerBI Embedded in a .NET 4.8 WinForms application.
For integrating the webpage, we use WebView2.
Since a few days our application is unable to show the reports. (No code changes in our client/server in a few weeks).
The message is 'The content is unavailble. More information about Power BI.> ' (translated from Dutch).
What have I tried:
- Checked the developer window of the WebView2, but no errors.
- Saved the HTML to file & opened in browser (both Edge & Chrome) -> works perfectly.
- Loading the HTML in WebView (old deprecated NuGet packages) -> works perfecly.
Left we see WebView2 and on the right is the WebView. The same html string is passed to both controls.
I cannot provide a sample project, since the reports are business information that cannot be spread.
I'm all out of idea's to pinpoint the problem. Any idea's/suggestions what I can try next?
Kind regards,
Pieter
Solved! Go to Solution.
Problem solved itself!
I assume it was a bug related to the june release.
Problem solved itself!
I assume it was a bug related to the june release.
This is the HTML that is used:
accesToken / embedUrl / reportId has to be filled in to work.
<html>
<head>
<script src=""https://cdnjs.cloudflare.com/ajax/libs/powerbi-client/2.14.1/powerbi.min.js""></script>
</head>
<body>
<div id=""reportContainer""/>
<script>
var accessToken = ""{accessToken}"";
var embedUrl = ""{embedUrl}"";
var embedReportId = ""{reportId}"";
var models = window['powerbi-client'].models;
var config = {{
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
settings: {{
filterPaneEnabled: true,
navContentPaneEnabled: false,
}}
}};
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);
</script>
</body>
</html>
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |