miren el code
Código PHP:
Excel._Workbook xlLibro;
Excel._Application xlApp;
Excel._Worksheet xlHoja1;
Excel.Range range;
Excel.Sheets xlHojas;
string fileName = "/Libro1.xls";
xlApp = new Excel.Application();
xlApp.Visible = true;
xlLibro = xlApp.Workbooks.Open(fileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
xlHojas = xlLibro.Sheets;
xlHoja1 = (Excel._Worksheet)xlHojas["Hoja1"];
groupBox1.Text = (string)xlHoja1.get_Range("A1", Missing.Value).Text;
groupBox2.Text = "Informacion";
label1.Text = (string)xlHoja1.get_Range("B1", Missing.Value).Text + ":";
range = xlHoja1.UsedRange;
for (int i = 2; i < 4; i++)
{
comboBox1.Items.Add((string)xlHoja1.get_Range("A" + i, Missing.Value).Text);
}
xlLibro.Close(false, Missing.Value, Missing.Value);
xlApp.Quit();