Forum Discussion
Paginated report not embedding inside update panel ASP.net
Hi,
Please suggest where to add in code level parameterPaneEnabled: false
Below code not working.
var models = window['powerbi-client'].models;
var embedConfig = {
type: 'report',
isPaginatedReport: true,
id: reportId,
embedUrl: embedUrl,
accessToken: embedToken,
tokenType: models.TokenType.Embed,
settings: {
panes: {
filters: { expanded: false, visible: false },
pageNavigation: { visible: true },
parameters: { expanded: false, visible: false }// Hides the parameter pane }
},
navContentPaneEnabled: true,
parameterPaneEnabled: false
}
};
var reportContainer = document.getElementById('powerBIReportContainer');
powerbi.reset(reportContainer);
var report = powerbi.embed(reportContainer, embedConfig);
Hi Anonymous,
Thanks for sharing the update.
The option parameterPaneEnabled: false that you mentioned is applicable only for interactive Power BI reports, not for Paginated Reports.
Since you're embedding a Paginated Report, the parameter panel visibility is controlled differently. You’ll need to use the supported commands.parameterPanel configuration to hide or collapse the parameter pane. Settings like panes.parameters or parameterPaneEnabled won’t have any effect in this case.
Please make sure you’ve removed any unsupported pane settings and are using the latest version of the Power BI JavaScript SDK.
If your query has been answered, please “Accept as Solution” and Give “Kudos” so others with similar issues can easily find the resolution.
Thank you.