I have embedded powerbi into my application (embed for customer). Whenever I use exporttofile API to export powerbi reports, it always includes the hidden pages. As per the exporttofile API documentation, if we set IncludeHiddenPages to False, it will exclude the hidden pages. But it is not working.
'''var powerBIReportExportConfiguration = new PowerBIReportExportConfiguration
{
Settings = new ExportReportSettings
{
Locale = "en-us",
IncludeHiddenPages = false
},
Pages = pageNames?.Select(pn => new ExportReportPage(pn)).ToList()
};
'''
Please note that, I have been used .NET Core to embed powerbi into my application.