| Author: D.Jeya kumar(JK) 29 Aug 2008 | Member Level: Diamond | Rating: 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 2008 | Member Level: Gold | Rating: Points: 1 |
First make sure you have added reference of Excel com component in your project.
|
| Author: Zeljko 01 Sep 2008 | Member Level: Bronze | Rating: 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
|