/// <summary> /// Exports the specified report from the specified workspace to the requested /// format: PPTX/PDF/PNG. /// </summary> /// <remarks> /// <br/>**Required scope**: Report.ReadWrite.All or Report.Read.All /// <br/>To set the permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// <h2>Restrictions</h2>Currently only export of a single page is /// supported.<br/> /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The group id /// </param> /// <param name='reportId'> /// The report id /// </param> /// <param name='requestParameters'> /// Export to file request parameters /// </param> public static Export ExportToFile(this IReportsOperations operations, Guid groupId, Guid reportId, ExportReportRequest requestParameters) { return(operations.ExportToFileAsync(groupId, reportId, requestParameters).GetAwaiter().GetResult()); }