Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I have followed all the steps to upload excel into Silverlight datagrid as in this link..

http://www.kunal-chowdhury.com/2010/05/silverlight-4-interoperability-with.html

, but I am getting issue at this step..

dynamic lObjExcel = AutomationFactory.CreateObject("Excel.Application");

As “This operation is not supported in the current context.”

Any ideas.
Thanks
Posted

Perhaps if you left this question in the article's own forum, you'll get help from the author.

To get this to work, you have to set the app to run out-of-browser. Did you do that?

I found this link on google:

http://10rem.net/blog/2010/04/14/scanning-an-image-from-silverlight-4-using-wia-automation[^]
 
Share this answer
 
v3
Make sure you have right dll's for Office installed.
Some files from Office will be a required for this code to execute.
 
Share this answer
 
v2
Comments
Sreenath Gv 6-May-11 0:19am    
Like which dlls..?
Sreenath Gv 6-May-11 0:19am    
I have all of tem insatlled and working..
This code is correct but not working unless you set your silverlight project property to run out of browser, I have this problem too, because i want to run the application in the browser, any help?
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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