Forum Discussion
Anonymous
6 years agoNot applicable
Power BI Export to file Error
We are using the latest version of the API (V3) I have copied the code examples from here - https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to in my 'PostExportRequest' functi...
Anonymous
6 years agoNot applicable
Good news:
If you don't specify the pages there, it'll print the full report every time.
It also seems to default to "en-us" as the locale if you don't specify.
It actually needs very minimal configuration
Just giving it a format in the export request is enough for the configto be done and complete.
Anonymous
6 years agoNot applicable
can you provide a code snippet of this part so that I can see?
var powerBIReportExportConfiguration = new PowerBIReportExportConfiguration
{
Settings = new ExportReportSettings
{
Locale = "en-us",
},
Pages = pageNames?.Select(pn => new ExportReportPage(pageName = pn.ToString())).ToList(),
};
var exportRequest = new ExportReportRequest
{
Format = fileFormat,
PowerBIReportConfiguration = powerBIReportExportConfiguration,
};