Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XlFileFormat for excel 2010 file

Tags:

c#

excel-2010

I want to create a excel 2010 file from C# so what will be the XlFileFormat Enumeration for it.

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.xlfileformat.aspx

like image 329
Saboor Awan Avatar asked Sep 09 '11 13:09

Saboor Awan


1 Answers

  • xlOpenXMLWorkbook for a .xlsx macro free workbook.
  • xlOpenXMLWorkbookMacroEnabled for a .xlsm macro enabled workbook.

The key piece of knowledge is that the new Office 2007 file formats are called Office Open XML.

like image 99
David Heffernan Avatar answered Nov 06 '22 22:11

David Heffernan