TomY
15 years agoOccasional Contributor
Writing 2007 Excel File
I am creating an excel file with test data and am using that for validation.
I have Office 2007 installed giving me a default 2007 format when I write my file. When I go to read the file with Java, it has problems recognizing a 2007 Excel but not a 2003. Is there an option to write the Excel in 2003?
...
xclD = Sys.OleObject("Excel.Application");
workBkDarwin = xclD.Workbooks.Add();
workSheetEvent = workBkDarwin.Sheets.Add();
workSheetEvent.Name = "Event";
...
When executing the OleObject or workbook, can I tell it to create in 2003 format?
I have Office 2007 installed giving me a default 2007 format when I write my file. When I go to read the file with Java, it has problems recognizing a 2007 Excel but not a 2003. Is there an option to write the Excel in 2003?
...
xclD = Sys.OleObject("Excel.Application");
workBkDarwin = xclD.Workbooks.Add();
workSheetEvent = workBkDarwin.Sheets.Add();
workSheetEvent.Name = "Event";
...
When executing the OleObject or workbook, can I tell it to create in 2003 format?