We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Export more than 65532 rows

Thread ID:

Created:

Updated:

Platform:

Replies:

127432 Nov 15,2016 12:41 PM Nov 16,2016 05:59 AM ASP.NET Web Forms 1
loading
Tags: XlsIO
gaurav singh
Asked On November 15, 2016 12:41 PM

I want to export more than 1 lacs row from datatable to excel. But when i exported my datatable row count is 111255 but after exporting using  
worksheet.ImportDataTable(dtExport, True, 1, 1, True) method, it's shows only 65536 row in excel.
 Is there any limitation? 
What to do if i have to export more than 1 lacs records?

Abirami Varadharajan [Syncfusion]
Replied On November 16, 2016 05:59 AM

Hi Gaurav, 
 
Thank you for contacting Syncfusion support. 
 
The maximum row limit in Microsoft Excel (97 to 2003) is 65,536. Whereas, the later versions start from Excel 2007 are limited to 1,048,576 rows. So, we recommend you to set the DefaultVersion of the application as mentioned in the below code snippet. 
 
Code Example: 
IWorkbook workbook = application.Workbooks.Create(1);
workbook.Version = ExcelVersion.Excel2013;
 
 
Kindly refer the documentation from the following link to know more about row and column limits for different MS Excel versions. 
 
 
Please let us know if you have any concerns. 
 
Regards, 
Abirami. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;