在Silverlight中创建Excel应用程序时出错 [英] Error while Creating the Excel Application in Silverlight

查看:94
本文介绍了在Silverlight中创建Excel应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我收到类似当前上下文不支持此操作"之类的错误.在下面的代码中创建Excel.Application对象时.

excelApp = AutomationFactory.CreateObject("Excel.Application");

任何人都可以帮忙解决此错误的原因.
谢谢,
Prasant

Hi All,

I am Getting an error like "This operation is not supported in the current context." while Creating an object of Excel.Application in the Following Code.

excelApp = AutomationFactory.CreateObject("Excel.Application");

Can anyone help on this please why this error is coming.

Thanks,
Prasant

推荐答案

这是否完全有帮助(可能没有)? http://10rem.net/blog/2010/04/14/scanning-an-image-from-silverlight-4-using-wia-automation [
- 只是一个想法.祝你好运.
Does this help at all (it might not)? http://10rem.net/blog/2010/04/14/scanning-an-image-from-silverlight-4-using-wia-automation[^]


Note: I usually don''t like to answer questions with just a link but I truly think you can find your answers on the internet by using some simple search criteria such as your error message and the class you are working with such as "AutomationFactory".

-- Just a thought. Good luck.


这可能也有帮助

http://www.eggheadcafe.com/searchform.aspx?search=AutomationFactory.CreateObject [ ^ ]
this might help as well

http://www.eggheadcafe.com/searchform.aspx?search=AutomationFactory.CreateObject[^]


这篇关于在Silverlight中创建Excel应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆