在Windows应用商店中播放的PowerPoint演示文稿
问题描述:
我需要在Windows应用商店中播放作为资源嵌入的PowerPoint演示文稿。 我下载的Visual Studio工具的Visual Studio 2012,并试图使用旧的学校Microsoft.Office.Interop.PowerPoint包,但我偶然发现了以下错误:在Windows应用商店中播放的PowerPoint演示文稿
Creating an instance of the COM component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} using CoCreateInstanceFromApp failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Please make sure your COM object is in the allowed list of CoCreateInstanceFromApp
如此看来,Windows应用商店的应用程序不能调用这些类型的COM对象。 http://msdn.microsoft.com/en-us/library/windows/apps/br205757.aspx
是否有任何API可用于Windows应用商店显示pptx?
谢谢。
答
不,目前没有API在Windows应用商店应用中显示pptx。
一些解决方法可能是:从您的应用程序
- 启动PowerPoint中的PPTX(您的Windows商店应用以外)。这里是how to launch the default app for a file(PowerPoint是一个.pptx的默认应用程序)。
- 转换的PPTX幻灯片图像(或者事先如果这是你这是静态的PowerPoint甲板,或拨打一个Web服务,可以做到这一点,如果你需要支持接收和显示新的PowerPoint甲板)