Hvordan får man alle rækker med fra et excel-dokument?
Jeg har følgende kode:Excel.Workbook theWorkbook =
ExcelObj.Workbooks.Open(
openFileDialog1.FileName, 0, true, 5,
"", "", true, Excel.XlPlatform.xlWindows, "\t",false, false,
0, true,true,true);
// get the collection of sheets in the workbook
Excel.Sheets sheets = theWorkbook.Worksheets;
// get the first and only worksheet from the collection
// of worksheets
Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(1);
for (int i = 1;/*HVAD SKAL DER STÅ HER*/.; i++)
{
Hvad skal der indsætte i for-sætningen for at få alle rækker med?
}
