Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 7-Aug-11 22:40pm
v2

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.
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900