是否可以将power bi嵌入桌面应用程序? [英] Is it possible to embed power bi into desktop application?

查看:155
本文介绍了是否可以将power bi嵌入桌面应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是正在开发桌面应用程序的ISV,并且想考虑为我的应用程序使用嵌入式的power bi,但是似乎无法找到信息(如果可以在桌面应用程序内部使用).在SO/Googe上搜索并没有给我答案.

I'm an ISV developing a desktop application and would like to consider using power bi embedded for my application, but just can't seem to find information if it is possible to use inside desktop application. Searching on SO / Googe did not give me answer to this question.

power bi嵌入式主页也没有强调仅限于网络.

power bi embedded homepage also did not stress out that it's restricted to web only.

P.S.如果仅用于"Web应用程序"-也许在表单内使用WebBrowser控件可能是一种解决方法?

P.S. If it is for "web apps only" - maybe using a WebBrowser control inside a form might be a workaround?

有人在桌面应用程序中使用Power Bi有经验吗?还是一些信息,是否有可能?

Does anyone has experience using power bi inside a desktop application? Or some information whether it is possible at all?

编辑

关于将报告集成到应用程序中的power bi手册

•步骤1:使用Azure AD注册Web应用.

•Step 1: Register a web app with Azure AD.

•步骤2:获取Power BI报告

•Step 2: Get a Power BI report

•步骤3:将Power BI报表加载到IFrame中

•Step 3: Load a Power BI report into an IFrame

来自Power Bi开发者论坛的信息Power BI团队成员指出这是可能的.任何可以托管和iframe的内容都可以嵌入Power BI报表.

info from power bi developer forum A Power BI team member states that It is possible. Anything that can host and iframe can embed a Power BI report.

更新的问题

有人有这样做的经验吗?如何注册"带有Azure AD的winforms应用程序是集成过程的第一步?

Does anyone have experience doing this actually? How about "registering" winforms application with Azure AD which is a 1st step of integration process?

推荐答案

PowerBI工作区集合现已淘汰,因此该方法不再有效.

PowerBI Workspace Collections are now retired so this method no longer works.

最后,我设法做到了.

以下是主要步骤(以防万一其他人需要将Power bi报表嵌入WinForms解决方案中):

Here are the main steps (in case if anyone else needs to embed Power bi report into WinForms solution):

1)您需要具有组织帐户的Azure订阅,该组织帐户已分配了power bi订阅(免费版本已足够)-如果没有此订阅,则无法分配power bi服务访问权限权利

1) you need Azure subscription that has an organizational account that has assigned power bi subscription (free version is enough) - if you don't have this, you can not assign power bi service access rights

2)在天蓝色的订阅中,您必须创建PowerBI工作区集合(在这里您可以获取访问power bi报告所需的访问键和工作区集合ID)

2) in azure subscription you have to create PowerBI workspace collection (here you can get access keys and workspace collection id that will be necessary to access your power bi report)

3)在Power BI桌面中设计报表(如果它是针对Azure SQL数据库的,那么即使有Power bi free订阅,您也可以使用直接模式)

3) design your report in Power BI desktop (if it's against Azure SQL db, then you can use Direct mode even with power bi free subscription)

4)将您的报告上载到azure power bi工作区集合中您可以从此git中心使用 ProvisionSample项目仓库

4) to upload your report into azure power bi workspace collection you can use ProvisionSample project from this git hub repository

  • 必须在您的AAD中注册该应用,并将其添加到与电源Bi服务相关的权限
  • 您必须创建工作区(之后您可以在Azure门户中获取它的ID)
  • 然后将pbix文件上传到工作区
  • 如果使用Azure SQL,则必须更新连接字符串(也可以使用此解决方案)
  • 在此解决方案的EmpedSample项目中,您可以看到它嵌入Web解决方案后如何工作
  • 这是
  • have to register this app in your AAD and add it power bi service related permissions
  • you have to create workspace (after that you can get it's id in Azure portal)
  • then upload pbix file in to workspace
  • if you use Azure SQL, then you have to update connection string (also possible using this solution)
  • in the EmpedSample project of this solution, you can see how it's working in case if it's embedded in Web solution
  • here is a link to power bi idea that requests easing this process (just in case if anyone's interested in this, too...)

5)现在,要将其用于winforms解决方案,可以使用此

5) now, to get this into winforms solution, you can use this WinformsSample project (it's not merged into master at the moment, don't know how to easily download it, but tested it and it works!)

  • 有趣的是,该应用程序无需在天蓝色下进行注册-似乎工作区收集键+相关数据就足够了...

P.S.这第5点使我有些紧张(即,将应用程序密钥存储在客户端代码中)也许可以将应用程序密钥移至REST API端并使用REST服务调用来检索它-然后,我想它会更安全... +更改应用程序密钥(Azure门户中有一个重新生成工具-请参阅工作区集合条目)不会涉及对客户端应用程序的更改

P.S. This 5th point somehow makes me a bit nervous (i.e. storing app keys in the client side code) perhaps it would be possible to move app keys to REST API side and retrieve it using REST service call - then, I guess it would be more secure... + changing app keys (there is a re-generation tool in Azure portal - see workspace collection entry) would not involve changes to client application

这篇关于是否可以将power bi嵌入桌面应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆