Forum Discussion

MichaelWash's avatar
MichaelWash
Icon for Helper I rankHelper I
3 years ago
Solved

Can we embed a Paginated report in the edit mode?

Microsoft announced you can now create Paginated Reports in the Web Browser:

Low code authoring of paginated reports | Microsoft Power BI Blog | Microsoft Power BI

 

I can embed a Paginated report using the following code:

 

    var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: TokenAccessLevel.View);

    var tokenResponse = await client.Reports.GenerateTokenAsync(
        new Guid(workspaceId),
        new Guid(reportId),
        generateTokenRequestParameters);

    result.EmbedToken = tokenResponse;
    result.EmbedUrl = report.EmbedUrl;
    result.Id = report.Id.ToString();

    await Interop.EditReport(
        JSRuntime,
        PowerBIElement,
        tokenResponse.Token,
        report.EmbedUrl,
        report.Id.ToString());

 

But trying to use Edit mode does not work:

 

    var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: TokenAccessLevel.Edit);

    var tokenResponse = await client.Reports.GenerateTokenAsync(
        new Guid(workspaceId),
        new Guid(reportId),
        generateTokenRequestParameters);

    result.EmbedToken = tokenResponse;
    result.EmbedUrl = report.EmbedUrl;
    result.Id = report.Id.ToString();

    await Interop.EditReport(
        JSRuntime,
        PowerBIElement,
        tokenResponse.Token,
        report.EmbedUrl,
        report.Id.ToString());

 

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi MichaelWash,

    Current power bi seems not support to embed paginated report in edit mode, you can embed it in view mode.

    Regards,

    Xiaoxin Sheng

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MichaelWash,

    Current power bi seems not support to embed paginated report in edit mode, you can embed it in view mode.

    Regards,

    Xiaoxin Sheng