コード例 #1
0
 /// <summary>
 /// Exports the specified report from the specified workspace to the requested
 /// format: PPTX/PDF/PNG.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Report.ReadWrite.All or Report.Read.All
 /// &lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// &lt;h2&gt;Restrictions&lt;/h2&gt;Currently only export of a single page is
 /// supported.&lt;br/&gt;
 /// </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());
 }