Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48400

Re: Angular 2 and Power BI Embedded

$
0
0

Hello,

 

   Thanks for sharing the code. We are able to integrate the power bi reports in our Angular 2 app. But, the problem is, we are seeing empty areas with in the iframe around the report. Is it possible to set viewPage property in the config settings as below. If so, how are we going to get the powerbi-client using window object in Angular 2, and use its models to set the pageView setting on the configuration . Below is not working for us(Source: https://microsoft.github.io/PowerBI-JavaScript/demo/code-demo/index.html - in edit mode.)

 

    let models = window['powerbi-client'].models;
    var config = {
      type: 'report',
      accessToken: this.pbiToken,
      embedUrl: CONFIGURATION.baseUrls.PowerBIEmbedURL + this.ReportID,
      id: this.ReportID,
      pageName: this.PageName,
      permissions: models.Permissions.All
      pageView: models.PageView.fitToWidth,
      settings: {
        filterPaneEnabled: false,
        navContentPaneEnabled: false
      }
    };

 

Thanks. 


Viewing all articles
Browse latest Browse all 48400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>