Write into excel fastest way

Hi,

I'm trying to write huge data from DB into excel about (800,000 rows and about 48 columns),
what is the best way to do that?


3 Replies

RS Ramya Sivakumar Syncfusion Team April 4, 2022 07:42 AM UTC

Hi Bashar,


Greetings from Syncfusion.


We suggest you import the data from the database using the data table. ImportDataTable method in XlsIO which has the ImportOnSave argument allows you to import data with less memory consumption along with improved method performance by serializing the data directly on the save method. This option is preferred for larger data that need to be imported in a short time.


Kindly refer to the following link to know about Importing data into Excel in the best way.

https://help.syncfusion.com/file-formats/xlsio/improving-performance#importing-datatable


Regards,

Ramya.



BA Bashar Al haj hamad replied to Ramya Sivakumar April 4, 2022 12:55 PM UTC

Hi,

I tried it and I'm getting this exception:

System.OverflowException: Not a legal OleAut date.

How I can solve it?



RS Ramya Sivakumar Syncfusion Team April 5, 2022 10:07 AM UTC

Hi Bashar,


Please share an issue reproducing sample or stack trace of the exception which would help us to proceed further.


Regards,

Ramya.


Loader.
Up arrow icon