C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




dll


Posted Date: 29 Aug 2008      Total Responses: 3

Posted By: Pkumar       Member Level: Silver     Points: 1


using Excel = Microsoft.Office.Interop.Excel;
in the name space showing error Interop




Responses

Author: D.Jeya kumar(JK)    29 Aug 2008Member Level: DiamondRating:     Points: 2
Hi,



Use the code like below

using Microsoft.Office.Interop.Excel;

Excel.Application exceldd = new Excel.Application();

Regards
JK


Author: Ritesh N. Jain    29 Aug 2008Member Level: GoldRating:     Points: 1
First make sure you have added reference of Excel com component in your project.


Author: Zeljko    01 Sep 2008Member Level: BronzeRating:     Points: 6
Hi,

You probably have problem with references to Office interop libraries. References in VS should be (some old project I have):
- Microsoft.Office.Core (Office.dll)
- Microsoft.Office.Interop.Excel (Microsoft.Office.Interop.Excel.dll)
- VBIDE (Microsoft.Vbe.Interop.dll)

Beware of COM automation problems: http://www.gemboxsoftware.com/GBSpreadsheet.htm#Automation

If your workbooks are not large you can use our GemBox.Spreadsheet Free (http://www.gemboxsoftware.com/GBSpreadsheetFree.htm)
Excel component for XLS/CSV/XLSX reading/writing/reporting.

--Zeljko



Post Reply
You must Sign In to post a response.
Next : dll
Previous : Adding two modules in an application
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it support

Contact Us    Privacy Policy    Terms Of Use