I'm trying to get Excel launched from inside a C-Sharp program. unfortunately I keep getting the following error when I try to debug. Why is it not accepting Excel as a legitimate class?
The type or namespace name 'Excel' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text.RegularExpressions;
using Microsoft.Office.Core; //needed to work with excel
using Microsoft.Office.Interop;
private Excel.ApplicationClass app = null; // the Excel application.
The type or namespace name 'Excel' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text.RegularExpressions;
using Microsoft.Office.Core; //needed to work with excel
using Microsoft.Office.Interop;
private Excel.ApplicationClass app = null; // the Excel application.