Forum Discussion
deryl1974
4 years agoFrequent Visitor
Export PDF from paginated report in c#
Hi All, I am trying to export a paginated report into pdf from c# application. Below is my code: private async Task<string> PostExportRequest(Guid reportId, Guid groupId) { try { var pagi...
AmosHersch
Microsoft Employee
4 years agoHi Lloyd,
Sorry for the confusion. Since you're using Power BI C# SDK for the API call you should just use the base URL instead of the full URL of the API:
var _apiUrl = new Uri("https://api.powerbi.com/");
The SDK will build the full URL and send the request to Power BI