Search This Blog

Friday, August 27, 2010

C# -Excel interoperability

Programmer Question

I want to call Excel Sheet from C# 4.0 (VS 2010 Express Edition) .



When i declare ,



Microsoft.Office.Interop.Excel.ApplicationClass excel =
new Microsoft.Office.Interop.Excel.ApplicationClass();

excel.Visible = true;


I receive error as



Interop type 'Microsoft.Office.Interop.Excel.ApplicationClass' cannot be embedded. Use the applicable interface instead.



What is the soultion ?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails