c# - How to export Large dataset (around 40k rows and 26columns), to be written in excel sheet -



c# - How to export Large dataset (around 40k rows and 26columns), to be written in excel sheet -

we have big dataset (around 40k rows). want write excel file.

i have tried writing excel file writing info cell cell , works.

the problem face , takes lot of time write excel.

is there efficient way same.

instead of looping through every row/column, assign total dataset array in memory - , assign array range object of same dimension. in vba, like:

dim arr variant arr = ... ' code fill array here set workbook("yourworkbook").worksheets("worksheetname"). _ range(1,1).resize(40000, 20).value = arr

hope can translate c#...

c# excel dataset

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -