I am writing dataset data to excel by reading from dataset and writing to excel
as DirectCast(ws.Cells(row, column), Range).Value2 = item
It is writing, But I have few formatting like borders for each cell and i am applying as
DirectCast(ws.Cells(row, col), Range).Borders(XlBordersIndex.xlEdgeLeft).Weight = 2
This works faster for 100 records and if i increase the records it takes lot of time.
Problem : In real time data there may be 2 lakhs records. Then how to increase the
performance to write fast that time.
Thank you
Ramesh.T.
Try applying the border effects after you finish writing all the lines.
What I mean is apply the border effect on a range of cells instead of on a cell by cell basis.