title: C# How to call PowerBi Paginated Report and export to PDF
body: <p>Does anyone have any good examples or links to help me print a paginated PowerBI report to PDF via C#.
  I've done some reading
  <a href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to</a>
  <a href="https://powerbi.microsoft.com/en-us/blog/export-report-to-pdf-pptx-and-png-files-using-power-bi-rest-api/" rel="nofollow noreferrer">https://powerbi.microsoft.com/en-us/blog/export-report-to-pdf-pptx-and-png-files-using-power-bi-rest-api/</a></p>
  <p>I'm very confused.  I've downloaded the PowerBI API nuget package and tried some sample code, however I'm unsure if I need to create an app in azure or I can just call directly using my username and password...</p>
  <p>My code to process the report will run in azure.</p>
  <p>Please let me know if you need any more info.</p>
  <p>Thanks</p>
  <p>Keegan</p>