在Silverlight 4中托管Microsoft Office应用程序? [英] Hosting Microsoft Office application inside Silverlight 4?
问题描述
我知道Silverlight 4通过 AutomationFactory
类支持COM互操作。
I know that Silverlight 4 has support for COM interop via the AutomationFactory
class.
dynamic excel = AutomationFactory.CreateObject( "Excel.Application" );
excel.Visible = true;
但这会为COM对象创建一个单独的窗口。我所缺少的是,如果我实际上能够在Silverlight应用程序中实际托管Office文档-例如在ContentPresenter中?
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?
推荐答案
您不会丢失任何东西-无法完成。您可以寻找Office文档的Silverlight转换器,例如
You're not missing anything - it can't be done. You could look for converters to Silverlight of Office documents like
- TextGlow (来源位于
CodePlex )( 2007 [和也许
2010 ]格式)。 - PowerPoint到Silverlight
Converter(客户端转换,
要求)要安装的PowerPoint),也可以在 CodePlex 上使用
。
- 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.
这篇关于在Silverlight 4中托管Microsoft Office应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!