0
Reply

How do I with draw from the Listview to excel with a loop ?

Ask a question
 

var cell = (Microsoft.Office.Interop.Excel.Range)excelWorksheet.Cells[6, 3]; 
label1.Text = Convert.ToString(cell.Value);
cell = (Microsoft.Office.Interop.Excel.Range)excelWorksheet.Cells[7, 3];
label2.Text = Convert.ToString(cell.Value);
cell = (Microsoft.Office.Interop.Excel.Range)excelWorksheet.Cells[8, 3];
label3.Text = Convert.ToString(cell.Value);
cell = (Microsoft.Office.Interop.Excel.Range)excelWorksheet.Cells[9, 3];
label4.Text = Convert.ToString(cell.Value);
cell = (Microsoft.Office.Interop.Excel.Range)excelWorksheet.Cells[10, 3];
label5.Text = Convert.ToString(cell.Value);