tags:

views:

51

answers:

2

Hi,

I need to built a console application that will convert all excel 2003 templates to excel 2007 template

Any help is appreciated

Thanks Aman

A: 

use Workbook.SaveAs() passing FileFormat as XlFileFormat.XlExcel12

Vinay B R
Thanks for reply.. I have created code as below: Application _excelApp=new Application(); Workbook workBook = _excelApp.Workbooks.Open(@"C:\Test\Book1.xls", Type.Missing, ......,Type.Missing); workBook.SaveAs(@"C:\Test\Book2.xlsx", XlFileFormat.xlExcel12, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); Is this correct as I am new to excel object..
A: 

Hi Vinay,

Thanks it's working fine....In File format I have passed "XlFileFormat.xlOpenXMLWorkbook".