Y
Yeshia
I am programically creating an .xls workbook using the OWC11 functions and
the SpreadSheet object. I have tried using the .Export method to save it as
..html, .xml, and .xls. All do open and are fine but a warning is popped up
before opening:
"The file you are trying to open is in a different format than specified by
the file extension. "
It opens fine and is formatted correctly. I am opening it with Excel 2007.
Is there a specific way I need to export it or possibly a different method I
could use? Below is the relevant code. Thanks:
((Worksheet)xlSheet.Worksheets["Sheet1"]).Activate();
xlSheet.Export(cPath, SheetExportActionEnum.ssExportActionNone,
SheetExportFormat.ssExportXMLSpreadsheet);
the SpreadSheet object. I have tried using the .Export method to save it as
..html, .xml, and .xls. All do open and are fine but a warning is popped up
before opening:
"The file you are trying to open is in a different format than specified by
the file extension. "
It opens fine and is formatted correctly. I am opening it with Excel 2007.
Is there a specific way I need to export it or possibly a different method I
could use? Below is the relevant code. Thanks:
((Worksheet)xlSheet.Worksheets["Sheet1"]).Activate();
xlSheet.Export(cPath, SheetExportActionEnum.ssExportActionNone,
SheetExportFormat.ssExportXMLSpreadsheet);