I am trying to export datagrid values to excel
using an array.. I get an error " ComException
was unhandled " in the following line:
using an array.. I get an error " ComException
was unhandled " in the following line:
Code:
xlWorkSheet.Range( "A1" ).Resize(DataGridView1.Rows.Count, DataGridView1.Columns.Count).value=myArray