简体   繁体   English

从嵌入式 Power BI 报表中删除页脚

[英]Remove footer from embedded Power BI report

I embedded Power BI into my web page using iframe code but I would like to hide the footer with share buttons.我使用 iframe 代码将 Power BI 嵌入到我的 web 页面中,但我想用共享按钮隐藏页脚。 Is there any way to achieve this?有什么办法可以做到这一点? I'm specifically talking about embed code (iframe), not public URL.我说的是嵌入代码(iframe),而不是公共 URL。

Thank you.谢谢你。

Typically, PowerBI returns the Iframe with it to show it was created by PowerBI, with the name embedded.通常,PowerBI 返回 Iframe 以表明它是由 PowerBI 创建的,并嵌入了名称。

Depending on how you created it you have some options .根据您创建它的方式,您有一些选择

  1. JavaScript with CSS to hide the footer. JavaScript 和 CSS 隐藏页脚。
  2. If you used the UI, from the UI using this link , as described below from the site in link如果您使用了 UI,请从 UI 中使用此链接,如下所述,来自链接中的站点在此处输入图像描述
  3. Some code to help you out: at configuration you can setup various values, and set your footer to false一些可以帮助您的代码:在配置中,您可以设置各种值,并将页脚设置为 false

 <html>

  <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/jquery/dist/jquery.js"></script>  
  <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/powerbi-client/dist/powerbi.js""></script>

  <script type="text/javascript">
      var embedConfiguration = {
          type: 'report',
          accessToken: 'someToken',
          id: '71.Tykt.org',
          embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=xxx.TYKT.org',
        settings: {
                      filterPaneEnabled: false,
                      navContentPaneEnabled: false
                      // Find the setting you want to hide and set it to False
                    } 
      }; 

      var report;

      window.onload = function () {  
      var $reportContainer = $('#reportContainer'); 
       report= powerbi.embed($reportContainer.get(0), embedConfiguration);

      }  

   </script>

   <div id="reportContainer"></div>
 </html>

Hope it helps!希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM