<?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 Re: Power BI in ASP Net MVC in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105240#M3647</link>
    <description>&lt;P&gt;AFAIK currently is not possible to hide filter panel or paging panel via REST API. Maybe we can upvote &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/12355407-hide-or-show-the-filter-fly-out-panel-on-embedded" target="_self"&gt;this&lt;/A&gt; :).&lt;/P&gt;&lt;P&gt;I tried using the same access token to embed report using powerbi.js, it didn't work. No console information, just blank screen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can do it on powerbi.js though, see this &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Update-Settings" target="_self"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2016 01:20:37 GMT</pubDate>
    <dc:creator>runrunrun</dc:creator>
    <dc:date>2016-12-22T01:20:37Z</dc:date>
    <item>
      <title>Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103366#M3582</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can display a RDL in an iframe from my own ReportServer &amp;nbsp;and now I would like to display a report (ASP MVC application) without Azure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On this link &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics" target="_self"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"but when using Power BI Embedded the tokens are issued by your own service and are specific to a report"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that I don't need Azure but i need an accessToken to display the report...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ? Or Other way than PowerBI-JS ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 11:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103366#M3582</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-12-16T11:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103705#M3590</link>
      <description>&lt;P&gt;Power BI Embedded can be used only as a resource in Azure (you can read on it &lt;A href="https://azure.microsoft.com/en-us/services/power-bi-embedded/" target="_self"&gt;here&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 12:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103705#M3590</guid>
      <dc:creator>eyalc</dc:creator>
      <dc:date>2016-12-18T12:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103864#M3595</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16923"&gt;@amassip&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't exactly understand what your mean "without azure". Both Power BI Service(at least Azure AD) or Power BI Embedded(Power BI workspace collection) are azure based.&lt;BR /&gt;&lt;BR /&gt;Regarding getting an accessToken in Power BI Embedded, you can check &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/9759b1c4cf0f31e7417e44a7ceff2b5f51e20046/EmbedSample/Controllers/DashboardController.cs" target="_self"&gt;DashboardController.cs&lt;/A&gt;&amp;nbsp;in&amp;nbsp;&lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app" target="_self"&gt;power-bi-embedded-integrate-report-into-web-app&lt;/A&gt;. You can explicitly specify when the token would expire, which means you can create a token never expires and use it anywhere in your javascript, though it is not recommended.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, Convert.ToDateTime("2017-12-31"));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 07:59:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103864#M3595</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-19T07:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103982#M3605</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know if we can display a Power BI in a web app ( such as asp net ) but without Azure. I mean if there is a token that you acquired from the power BI authentification or something like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think it is not possible, you have to intregate Azure in your project. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/103982#M3605</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-12-19T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104179#M3611</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16923"&gt;@amassip&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Check if &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-publish-to-web/" target="_self"&gt;Publish to web from Power BI&lt;/A&gt; can meet your requirement. It is a public page and doesn't require any token.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 23:08:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104179#M3611</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-19T23:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104338#M3613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can check &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report-get-report/" target="_blank"&gt;this&lt;/A&gt; out.You can get the clientID &amp;amp; clientSecret from registering your app &lt;A href="https://dev.powerbi.com/apps" target="_blank"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried and it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 09:00:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104338#M3613</guid>
      <dc:creator>runrunrun</dc:creator>
      <dc:date>2016-12-20T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104532#M3626</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For privacy reason I can't publish report but thanks for the suggestion !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16393"&gt;@runrunrun&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, with your second link and from this&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-CSharp/blob/master/samples/webforms/integrate-report-web-app/PBIWebApp/Default.aspx.cs" target="_self"&gt;link&lt;/A&gt;&amp;nbsp;I can get the AccessToken &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I connect to my PowerBI account ( AuthorizationCode) then I get the AccessToken and finally I want to display my reports&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got an error on this line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using (var response = request.GetResponse() as System.Net.HttpWebResponse)&lt;/PRE&gt;&lt;P&gt;Error 403 Forbidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the register application power BI page I choose only&amp;nbsp;&lt;EM&gt;Read All Reports&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//Configure Reports request
            System.Net.WebRequest request = System.Net.WebRequest.Create(
                String.Format("https://api.powerbi.com/beta/myorg//Reports", 
                baseUri)) as System.Net.HttpWebRequest;

            request.Method = "GET";
            request.ContentLength = 0;
            request.Headers.Add("Authorization", String.Format("Bearer {0}", accessToken));

            //Get Reports response from request.GetResponse()
            using (var response = request.GetResponse() as System.Net.HttpWebResponse) // here&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT : problem solve, thanks all !&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104532#M3626</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-12-20T16:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104950#M3637</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a last question :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/reportEmbed?reportId=21b8b191-9313-4ad6-8a33-xxxx" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId=21b8b191-9313-4ad6-8a33-xxxx&lt;/A&gt; ==&amp;gt; works well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to hide the filter panel :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/reportEmbed?reportId=21b8b191-9313-4ad6-8a33-xxx" target="_blank"&gt;https://app.powerbi.com/reportEmbed?reportId=21b8b191-9313-4ad6-8a33-xxx&lt;/A&gt;&lt;STRONG&gt;&amp;amp;filterPanelEnabled=false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;==&amp;gt; nothing happened, in the internet explorer's console I can see &lt;EM&gt;'access denied'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filters' level : on the page&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 10:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/104950#M3637</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-12-21T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105240#M3647</link>
      <description>&lt;P&gt;AFAIK currently is not possible to hide filter panel or paging panel via REST API. Maybe we can upvote &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/12355407-hide-or-show-the-filter-fly-out-panel-on-embedded" target="_self"&gt;this&lt;/A&gt; :).&lt;/P&gt;&lt;P&gt;I tried using the same access token to embed report using powerbi.js, it didn't work. No console information, just blank screen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can do it on powerbi.js though, see this &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Update-Settings" target="_self"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 01:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105240#M3647</guid>
      <dc:creator>runrunrun</dc:creator>
      <dc:date>2016-12-22T01:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105390#M3657</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16393"&gt;@runrunrun&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;powerbi.js works, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 08:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105390#M3657</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-12-22T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105444#M3664</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16923"&gt;@amassip&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PowerBI.js is awesome. However appending "&lt;STRONG&gt;&amp;amp;filterPaneEnabled=false&lt;/STRONG&gt;" to a url still works when I test embeding with PowerBI REST API. It is just a little typo, try to drop the &lt;STRONG&gt;l&lt;/STRONG&gt; in &lt;STRONG&gt;&amp;amp;filterPanelEnabled=false&lt;/STRONG&gt;.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/24154i2291EF5752B81E72/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 10:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/105444#M3664</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-22T10:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/122169#M4202</link>
      <description>&lt;P&gt;Hi I am having the same issue, can get a token, but getting a 403 when I submit. &amp;nbsp;What was your solution to get past the 403 in the Response?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 21:15:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/122169#M4202</guid>
      <dc:creator>silmar</dc:creator>
      <dc:date>2017-02-02T21:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/123224#M4263</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you get your token ? From the authorizationcode ( with your powerBI account ) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this code to get a report :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string baseUri = "https://api.powerbi.com/v1.0/myorg/reports";
string token =  "token";
//Configure Reports request
System.Net.WebRequest request = System.Net.WebRequest.Create(
String.Format("{0}",
baseUri)) as System.Net.HttpWebRequest;
request.Method = "GET";
request.ContentLength = 0;
request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

using (var response = request.GetResponse() as System.Net.HttpWebResponse)
{
    //do something..
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that there was the SSRS's update in January 2017, we can display powerBI in SSRS ( such as RDL ) but is it possible to take this url to display a powerBI report, &amp;nbsp;i.e : in an iframe ? ( on-premise )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:24:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/123224#M4263</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2017-02-06T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI in ASP Net MVC</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/155766#M5267</link>
      <description>&lt;P&gt;Have someone try the filterpane=false and filter by report filters in SSRS 2016 on premise PowerBI reports?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 23:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-in-ASP-Net-MVC/m-p/155766#M5267</guid>
      <dc:creator>daniels</dc:creator>
      <dc:date>2017-04-07T23:03:42Z</dc:date>
    </item>
  </channel>
</rss>

