<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Download Power BI report in code in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553160#M17252</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to download a Power BI report in code (C# for example)?&lt;/P&gt;&lt;P&gt;We would like to automate a download of a existing Power BI Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your feedback!&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 07:25:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-26T07:25:24Z</dc:date>
    <item>
      <title>Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553160#M17252</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to download a Power BI report in code (C# for example)?&lt;/P&gt;&lt;P&gt;We would like to automate a download of a existing Power BI Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your feedback!&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553160#M17252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553556#M17276</link>
      <description>&lt;P&gt;Yes, you can use the Power BI SDK which provides methods in PowerBiClient.Reports. Here is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PowerBIClient pbiClient = GetPowerBiClient();&lt;BR /&gt;&lt;BR /&gt;var reportStream = pbiClient.Reports.ExportReportInGroup(appWorkspaceId, report.Id);
string filePath = @"C:\tempExport\" + report.Name + ".pbix";
FileStream stream1 = new FileStream(filePath, FileMode.Create, FileAccess.ReadWrite);
reportStream.CopyToAsync(stream1).Wait();
reportStream.Close();
stream1.Close();
stream1.Dispose();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:18:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553556#M17276</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-26T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553569#M17279</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2834"&gt;@TedPattison&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all thank you for your reply and info/code sample.&lt;/P&gt;&lt;P&gt;Excuse me, i rephrase, can you download a PDF/PNG from a report in C# from a report or dashboard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:40:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553569#M17279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553735#M17283</link>
      <description>&lt;P&gt;Sorry I misunderstood.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the only support for export-to-pdf is in Power BI Desktop and not in the Power BI Service. Unfortunately, there is no way to automate generating PDF files with Power BI Desktop. I do not think what you want will be possible until the Power BI team adds export-to-pdf capabilities to the Power BI Service and also support to call it through the API. This feature is on the Power BI team's roadmap but I have no idea when we might see this in preview.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553735#M17283</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-26T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553972#M17287</link>
      <description>&lt;P&gt;No, it is my fault for not stating my question properly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for both replies as they helped me both!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 20:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/553972#M17287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T20:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Download Power BI report in code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/1536341#M26696</link>
      <description>&lt;P&gt;Is is possible to download power BI report using SSIS script or using C#?&lt;/P&gt;&lt;P&gt;I want to automate report download from power bi server by passing dynamic parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2834"&gt;@TedPattison&lt;/a&gt;&amp;nbsp;&amp;nbsp;how you done this in your application&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 10:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Download-Power-BI-report-in-code/m-p/1536341#M26696</guid>
      <dc:creator>umeshlade</dc:creator>
      <dc:date>2020-12-07T10:47:25Z</dc:date>
    </item>
  </channel>
</rss>

