Guys,
i just developed a simple code, opening up excel file..
And i keep getting error message saying that namespace for activexOject
could not be found..
I have already included Microsoft ActiveXObject reference here..still getting the error..
Aany idea how to deal with this>
i just developed a simple code, opening up excel file..
And i keep getting error message saying that namespace for activexOject
could not be found..
I have already included Microsoft ActiveXObject reference here..still getting the error..
Aany idea how to deal with this>
Code:
// Declare the variables
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
// Create the Excel application object.
oXL = new ActiveXObject("Excel.Application");
oXL.Visible = true;
((Excel.Worksheet)oWB.Sheets[2]).Select(
Type.Missing);
oSheet = (Excel._Worksheet)oWB.ActiveSheet;