Forum Discussion

ozpbi123's avatar
ozpbi123
Regular Visitor
3 years ago
Solved

Export state issue with multiple tabs

When exporting an embedded report via the current state (caputured via the powerbi-client bookmarksManager.capture() method, then passing that state into the C# Microsoft.PowerBi.Api  ExportToFileInG...
  • AmosHersch's avatar
    3 years ago

    You should make sure you're using latest JS SDK when capturing the bookmark, and you should pass the "allPages" option, see here: ICaptureBookmarkOptions interface | Microsoft Learn

    Then you should pass it to the "Export to File" API as the state for the default bookmark