Hosting Microsoft Office application inside Silverlight 4?

非 Y 不嫁゛ 提交于 2019-12-10 14:10:42

问题


I know that Silverlight 4 has support for COM interop via the AutomationFactory class.

dynamic excel = AutomationFactory.CreateObject( "Excel.Application" );
excel.Visible = true;

But this creates a separate window for the COM object. What I am missing here is if I am actually able to actually host an Office document inside my Silverlight application - in a ContentPresenter for example?


回答1:


You're not missing anything - it can't be done. You could look for converters to Silverlight of Office documents like

  • TextGlow for Word (source is on CodePlex) (2007 [and maybe 2010] format only).
  • PowerPoint to Silverlight Convertor (client side conversion, requires PowerPoint to be installed), also on CodePlex.

Both of these are view-only and do not come close to full fidelity - but they are a "good enough" set of options.



来源:https://stackoverflow.com/questions/2888675/hosting-microsoft-office-application-inside-silverlight-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!