Forum Discussion

ys01's avatar
ys01
Frequent Visitor
2 years ago
Solved

How to create a blank embedded paginated report using the powerbi-client library as master user

Hello! I'm using the powerbi-client library to create a new report in an container. I am able to use the createReport method to create reports but not paginated reports. This is the code I'm using to...
  • johnbasha33's avatar
    2 years ago

    Hi ys01  

    here is a sample attempt i made to connect to JS script. 

    var embedConfiguration = {
    type: 'report',
    accessToken: '<embed_token>',
    embedUrl: '<report_url>',
    tokenType: models.TokenType.Embed,
    settings: {
    filterPaneEnabled: false,
    navContentPaneEnabled: false
    }
    };

    var reportContainer = document.getElementById('reportContainer');

    var report = powerbi.embed(reportContainer, embedConfiguration);

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!