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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve issues with maximum number of formats exceeded exception when exporting a Grid to Excel in WinForms GridControl or GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl

Resolve maximum number of formats exceeded exception


The “Maximum number of formats exceeded” exception occurs when the Grid is exporting with maximum number of styles and other formats (Excel 2003).


You can resolve this issue by setting the excel engine version and workbook version as per your required excel version. As Excel 2003 supports only 4000 extended formats, you need to initialize the engine as 2007 or higher excel engine version.


ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Specify your needed Excel version
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workBook = ExcelUtils.CreateWorkbook(1);
//Specify your needed Excel version
workBook.Version = ExcelVersion.Excel2013;
IWorksheet sheet = workBook.Worksheets[0];


Dim excelEngine As ExcelEngine = New ExcelEngine
Dim application As IApplication = excelEngine.Excel
‘Specify your needed Excel version
application.DefaultVersion = ExcelVersion.Excel2013
Dim workBook As IWorkbook = ExcelUtils.CreateWorkbook(1)
‘Specify your needed Excel version
workBook.Version = ExcelVersion.Excel2013
Dim sheet As IWorksheet = workBook.Worksheets(0)


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile