9

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

Saboor Awan
  • 1,567
  • 4
  • 24
  • 37

1 Answers1

17
  • 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.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490