I'm build intarface for detection size object.
I get result the size object from binary image from camera capture and i need record size object data to excel.
I was tried this code to show and record size data from my interface using excel.
private void dataToolStripMenuItem_Click(object sender, EventArgs e)
Microsoft.Office.Interop.Excel.Application xla = new Microsoft.Office.Interop.Excel.Application();
Workbook wb = xla.Workbooks.Add(XlSheetType.xlWorksheet);
Worksheet ws = (Worksheet)xla.ActiveSheet;
xla.Visible = true;
ws.Cells[1, 1] = "No";
ws.Cells[1, 2] = "Size Data";
arraySize = new string;
for (int i = 3; i != (arraySize.Length); i++)
string sizeData = labelSize.Text;
ws.Cells[i, 2] = sizeData;
But code above just give me "one data" when i clicked button data and it's still same until rows 100.
And it doesn't what i meant.
I need the size object from the text box in intraface will record to excel when i'm click the button data, and excel give me result size data in runtime from interface.
So, anyone can help me to get runtime size data and record it to excel?