NexAddo
NexAddo

Reputation: 772

Save .xls file using Microsoft Office 12.0 Object Library

How do you specify the file format as .xls and not .xlsx when saving an excel file in C# programatically?

I've tried using Excel.XlFileFormat.xlXMLSpreadsheet

Which enumeration type will save the spreadsheet as a 2000-2003 formatted excel spreadsheet?

Upvotes: 2

Views: 685

Answers (2)

Alex K.
Alex K.

Reputation: 176006

From 2007/2010 automation you wantExcel.XlFileFormat.xlExcel8 for a 2000-2003 .xls.

Upvotes: 4

Rup
Rup

Reputation: 34418

I used xlWorkbookNormal in some old code. I can't see any documentation to support that, though.

Upvotes: 0

Related Questions