How to display dwf/dwg in a web page? - html

How do you embed Autodesk 2010 dwf/dwg files in a web page?
I found some old code that worked with the Volo View Express 2 activex control in IE, but it won't display newer drawings.
<iframe height="500px" width="100%" scrolling="auto" src="drawing.dwg"></iframe>
Is there a new/better activex control available?

Volo View 3 fixed it

Related

"Read Aloud" not working for PDF files opened in Microsoft Edge html frame

Microsoft Edge has "Read Aloud" functionality for PDF files opened within the browser. However, this functionality does not work if the PDF file is opened within a frame in the browser.
Anybody found a solution for this?
index.html:
...
<frame name="menu" src="content.html" marginheight="0" marginwidth="0" scrolling="auto" noresize>
...
content.html:
link
</body>
I reproduced this issue, and also reproduced it with a local PDF. Apparently, Read Aloud feature is currently not supported on PDFs within <frame>/<iframe>. I suggest sending feedback to the Dev Team using Alt+Shift+I to request this feature. For now, you can display PDFs outside a frame if possible to use this feature.

how to embed ssrs fetchxml dynamics 365 report in Web Page?

We have a requirement where we have to embed our Dynamics 365 fetch XML SSRS report in the web portal? please suggest how can we achieve this scenario?
You can add an iFram and put the link of the report in its source
<iframe width="430" height="350" frameborder="0" scrolling="auto" src="http://ReportManagerURL/reports/?rs:Embed=true"></iframe>

PowerBI embedded dashboard Desktop / Mobile

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.

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 embed a PDF?

I am trying to embed a PDF in an HTML document, but this seems to work only with Chrome. Other browsers appear to either require plugins or require a user to click a link which is not what I want. Here is what I have tried:
<object data="pdfFiles/interfaces.pdf" type="application/pdf">
<embed src=" pdfFiles/interfaces.pdf" type="application/pdf"> </embed>
alt :<a href="pdfFiles/interfaces.pdf">
</object>
Here is the code you can use for every browser:
<embed src="pdfFiles/interfaces.pdf" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">
Tested on firefox and chrome
<iframe src="http://docs.google.com/gview?url=http://example.com/pdf.pdf&embedded=true"
style="width:600px; height:500px;" frameborder="0"></iframe>
Google docs allows you to embed PDFs, Microsoft Office Docs, and other applications by just linking to their services with an iframe. Its user-friendly, versatile, and attractive.
This works perfectly and this is official html5.
<object data="https://link-to-pdf"></object>
do you know about http://mozilla.github.io/pdf.js/ it is a project by mozila to render pdf inside of your html using canvas. it is super simple to use.
I recommend using PDFObject for PDF plugin detection.
This will only allow you to display alternate content if the user's browser isn't capable of displaying the PDF directly though. For example, the PDF will display fine in Chrome for most users, but they will need a plugin like Adobe Reader installed if they're using Firefox or Internet Explorer.
At least PDFObject will allow you to display a message with a link to download Adobe Reader and/or the PDF file itself if their browser doesn't already have a PDF plugin installed.
FlexPaper is probably still the best viewer out there to be used for this kind of stuff. It has a traditional viewer and a more turn page / flip book style viewer both in flash and html5
http://flexpaper.devaldi.com