PowerBI embedded dashboard Desktop / Mobile - html

I want to embed a PowerBI dashboard on a webpage. This works with the classic PowerBI Publish to web for the desktop.
Is there a way that the webpage dynamically switches to the mobile view when accessed from a mobile device?
HTML for Desktop:
<iframe width="900" height="700" src="https://app.powerbi.com/view?r=eyJrIjoiNmI1NTk0MmYtMmQzNy00N2IzLWFiYWQtY2QxNGUzNTI4YzA5IiwidCI6IjE3NTQxNmE2LTI2YzgtNGRmZi1iNWUwLTIwNTk5YjMzODk1ZCIsImMiOjl9" frameborder="0" allowFullScreen="true"></iframe>

No, Publish to web does not support phone (mobile) view. If you are embedding using Power BI Embedded API, you can control the layout by specifying MobilePortrait or MobileLandscape layout types in the configuration. Or you can change this later, using following JavaScript code:
const newSettings = {
layoutType: models.LayoutType.MobileLandscape
};
report.updateSettings(newSettings);
For more information you can see Embed a report in mobile layout article.

Related

embed PDF not working in Android Chrome - plugin not supported

I want to display my PDF files on my web page.
This is my code which works perfectly my computers browser but id does not display in mobile's chrome shows the message
plugin not supported
this is my code
<embed src="http://health.ntuh.gov.tw/health/NTUH_e_Net/NTUH_e_Net_no91/%E7%99%8C%E7%97%87%E7%AF%A9%E6%AA%A2.pdf" type="application/pdf" />
You can use Google Drive PDF viewer with Object data
ex.
<object data="https://drive.google.com/viewerng/viewer?embedded=true&url=http://health.ntuh.gov.tw/health/NTUH_e_Net/NTUH_e_Net_no91/%E7%99%8C%E7%97%87%E7%AF%A9%E6%AA%A2.pdf" type="application/pdf">
<embed src="https://drive.google.com/viewerng/viewer?embedded=true&url=http://health.ntuh.gov.tw/health/NTUH_e_Net/NTUH_e_Net_no91/%E7%99%8C%E7%97%87%E7%AF%A9%E6%AA%A2.pdf" type='application/pdf'>
</object>
PDF must be a download to browsing device So Some browsers can display with their pdf extension and some may not have such a pdf extender.
Users can set their own PDF preferences like display or not display after download or use a different PDF extender.
Embed is not the preferred method for serving a PDF, the most preferred method is text or a thumbnail cover / image icon with <a href=file.pdf download> click to download whole file</a> this reduces the load on the server (reduced cost like Amazon / book sites)
&nbsp
2nd best is one iFrame on a page Below on Right (more than one means multiple downloads.)
Finally an Embed (Object is a method to be avoided as now depreciating / not good) See your Embed in an Object Above Left

Display document in an iframe for all devices

I am developing a website use by PC, Tablet and smartphone and i am trying to display a document in an iframe. I read a lot of post but I'm stuck.
I have a component html with an iframe inside:
<iframe src="http//..myDoc.pdf"></iframe>
On computer it works fine and the iframe display the document.
But I have two problems:
1) On android (tablet Samsung and smartphone Samsung), the document is not display and it is downloading automatically instead.
What I need to do for avoid download the document and for only display it?
2) On iPhone (6s), the document is displayed but the document's size exceeds the ifame'size.
How can I do to fit all the document in the iframe?
Thank you
I have found an answer and It works on all devices.
<iframe src="http://docs.google.com/gview?url=http://..myDoc.pdf&embedded=true" style="width:100%; height:100%;" frameborder="0"></iframe>
I need to display sensitive data. Is it a secure way to use the docs.google.com/gview ?
If I need to do something to secure the iframe, can someone tell me please?
Thank you

Load pdf in html by embeding or using iframe in app

Building an app and I need to show a pdf on a screen within the app. I am open to either embedding it or using an iframe, but no matter what I do, I can't see the right side of the document. I can see it lengh-wise but no resizing methods are working to see the entire width. Two of my 100 approaches are below. Any help would be great. Designing for iPhone 6 primarily.
<embed src="filename.pdf" width="375" height="625">
<iframe id="menupdf" src="filename.pdf#zoom=100" width="1000" height="1000"></iframe

how to embed the powerBi report in html iFrame

This content cannot be displayed in a frame
<p>
<iframe style="border-width: 1px; border-color: #bbb; border-style: solid;"
src="https://app.powerbi.com/groups/me/dashboards/ba2bd959-2877-4b8d-ab97-986997bbe15b/qna"
frameborder=""
scrolling="no"
align="middle"
width="696"
height="588">
</iframe>
</p>
Power BI does not currently support embedding QNA or Dashboards. You can embed tiles from a dashboard or reports. The link describing how to do the latter two are here:
http://blogs.msdn.com/b/powerbidev/archive/2015/09/23/power-bi-api-updates-roundup.aspx
and here:
http://blogs.msdn.com/b/powerbidev/archive/2015/12/02/power-bi-api-updates-roundup-december-2015.aspx
From your Power BI workspace, select File->Publish to Web. Then it will show you the correct link to embed in your iframe. It will give you warnings about this not being secure. My PBI reports all run in an intranet so this is not an issue for me.
Power BI now supports this feature.
https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-portals-or-websites/#:~:text=The%20new%20Embed%20option%20is,HTML%20to%20add%20the%20report.
Power BI introduces the feature for embed the PowerBI dashboard on your website via frame.
Embed Power BI dashboard in website
like facebook,twitter you also need to authenticate your web app.Due to security issue you can't load the powerbi in iframe.
For More
Steps integrating powerbi in web app

How to add a webview in html5 hybrid app like we add webview in native apps?

How to add a webview in html5 hybrid app like we add webview in native apps
Pls dont get confused with the wrapping of html5 app within a webview and adding it as a native app.
What i need is a web view to be added in my html5 app where a url content is displayed.
If you want to display the content of another url within your page, just use an iframe:
<body>
<p>My stuff</p>
<iframe src="url_to_load"></iframe>
</body>
Have in account that WebView is a class of the Cocoa framework, which is written in objective-c and allows you to build Mac applications. You can't use this with Html