locked
It is impossible to show MS Office OneDrive embed preview in the Windows Store app

    Question

  • I'm trying to show MS Office files located in OneDrive in the Windows Store app (Javascript+HTML)

    OneDrive embed code to preview MS Word file in any HTML page:

    <iframe src="https://onedrive.live.com/embed?cid=AABF0E8064900F8D&resid=AABF0E8064900F8D%21849&authkey=ALNiW4X5hyX_WXE&em=2" width="476" height="288" frameborder="0" scrolling="no"></iframe>

    This embed code works from any HTML page but doesn't work inside x-ms-webview control in the Windows Store app

    Any ideas?
    Tuesday, March 25, 2014 5:09 PM

Answers

  • Hi,

    I test your project. The error reason is that the x-ms-webview control cannot display the PDF content. And WebView doesn’t do Flash.  Or Silverlight.  Or PDF.  Or any other ActiveX control or plugin. Because ActiveX controls have made Internet Explorer an incredibly useful tool for applications that need to be widely distributed.  However, it has also been an attack vector used by malware developers.  In the development of the WinRT APIs, it was decided that the WebView control – like the Immersive Internet Explorer – would not host any ActiveX controls, which is how older versions of IE hosted Flash and Silverlight, for safety and performance reasons. Additionally, although the RTM version of IE10 includes Flash as a built-in feature, this did not make it into the WebView control. You can refer to the link below:http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN3

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, March 26, 2014 3:31 AM

All replies

  • Hi,

    I test your project. The error reason is that the x-ms-webview control cannot display the PDF content. And WebView doesn’t do Flash.  Or Silverlight.  Or PDF.  Or any other ActiveX control or plugin. Because ActiveX controls have made Internet Explorer an incredibly useful tool for applications that need to be widely distributed.  However, it has also been an attack vector used by malware developers.  In the development of the WinRT APIs, it was decided that the WebView control – like the Immersive Internet Explorer – would not host any ActiveX controls, which is how older versions of IE hosted Flash and Silverlight, for safety and performance reasons. Additionally, although the RTM version of IE10 includes Flash as a built-in feature, this did not make it into the WebView control. You can refer to the link below:http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN3

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, March 26, 2014 3:31 AM
  • Thanks for the answer. I just want to say that MS Office and PDF viewers commonly don't require to use ActiveX. Possibly MS could use HTML5 conversion to let Windows Store apps to show OneDrive's MS Office docs inside x-ms-webview control. At least see documents, not to modify.
    Wednesday, March 26, 2014 11:59 AM