'Declaration Public Property CompatibilityMode As CompatibilityMode
public CompatibilityMode CompatibilityMode {get; set;}
'Declaration Public Property CompatibilityMode As CompatibilityMode
public CompatibilityMode CompatibilityMode {get; set;}
This property allows you to specify which version of Microsoft Excel you want your workbooks to be compatible with.
Excel2003 mode allows you to create sheets with up to 65,536 rows and 256 columns. Excel2007 mode allows you to create sheets with up to 1,048,576 rows and 18,278 columns.
Note that the XLS file format is limited by the Excel2003 limits. If you use the Excel2007 mode and create large sheets, save them into OpenXml files instead of XLS.