Nota: No sabia en que lugar poner mi duda :P.
Un saludo a todos...
Bueno... mi problema es este...
Error 1 Cannot implicitly convert type 'object' to
'Microsoft.Office.Interop.Excel.Worksheet'. An explicit conversion exists
(are you missing a cast?) C:\Documents and Settings\Jorge\Configuración
local\Datos de programa\Temporary
Projects\WindowsFormsApplication1\Form1.cs 25 35 WindowsFormsApplication1
...y mi codigo es este...
Workbook theWorkbook = ExcelSheet.Workbooks.Open("C:\\Libro1.xls", 0, true,
5, "", "", true, XlPlatform.xlWindows, "\t", false, false, 0, true,
Type.Missing, Type.Missing);
Sheets sheets = theWorkbook.Worksheets;
Worksheet worksheet = sheets.get_Item(1); // Aquí me lanza un error...
Espero que me puedan ayudar y explicarme porque no puedo trabajar con Excel
y C#.
Saludos.
Jorge Montenegro Gana.
Leer las respuestas