Duplicate : Easiest way to import System.Data.DataSet into Excel?
Using C # under VS2008, we can create an excel application, a workbook, and then a worksheet by doing the following:
Application excelApp = new Application();
Workbook excelWb = excelApp.Workbooks.Add(template);
Worksheet excelWs = (Worksheet)this.Application.ActiveSheet;
Then we can access each cell using "excelWs.Cells [i, j]" and write / save without problems. However, with a large number of rows / columns, we expect a decrease in efficiency.
Is there a way to bind data to a DataSet in a worksheet without using the cell-by-cell method? Most of the methods that we saw at some point return to a phased approach. Thanks for any suggestions.
Jason barnwell
source
share