V
Vidya
I am getting the below warning when I try to open the excel file in MS 2007.
The same file opens in 2003 without any warning.
""The file you are trying to open, 'servlet.xls', is in a different format
than specified by the file extension. Verify that the file is not corrupted
and is from a trusted source before opening the file. Do you want to open the
file now?"
Below is the content of my servlet.xls file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="urn:schemas-microsoft-comfficeffice"
xmlns:x="urn:schemas-microsoft-comffice:excel"
xmlns="http://www.w3.org/TR/REC-html40"
dir=LTR>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>servlet</title>
<!--[if gte mso 9]><xml>
<oocumentProperties>
<o:Author>User</o:Author>
<o:Company>Trial</o:Company>
<o:Created>2008-11-26 22-19-32</o:Created></oocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<oownloadComponents/>
<ooNotOrganizeInFolder/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:FitToPage/>
<xrotectContents>False</xrotectContents>
<xrotectContents>False</xrotectContents>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<xrotectStructure>False</xrotectStructure>
<xrotectWindows>False</xrotectWindows>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body bgcolor="#ffffff">
<TABLE ><TR>
<TD ALIGN="left" DIR="LTR"><SPAN STYLE="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
COLOR: #000000; FONT-STYLE: italic; TEXT-DECORATION: underline; FONT-WEIGHT:
400">Arial Italic </SPAN></TD>
</TR>
</TABLE>
</body></html>
Could somebody please let me know how can I avoid the warning when I open
the above excel in the MS Office 2007.
Should I need to add any MIME type in the above excel to avoid the warning.
Thanks In Advance,
Vidya
The same file opens in 2003 without any warning.
""The file you are trying to open, 'servlet.xls', is in a different format
than specified by the file extension. Verify that the file is not corrupted
and is from a trusted source before opening the file. Do you want to open the
file now?"
Below is the content of my servlet.xls file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="urn:schemas-microsoft-comfficeffice"
xmlns:x="urn:schemas-microsoft-comffice:excel"
xmlns="http://www.w3.org/TR/REC-html40"
dir=LTR>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>servlet</title>
<!--[if gte mso 9]><xml>
<oocumentProperties>
<o:Author>User</o:Author>
<o:Company>Trial</o:Company>
<o:Created>2008-11-26 22-19-32</o:Created></oocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<oownloadComponents/>
<ooNotOrganizeInFolder/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:FitToPage/>
<xrotectContents>False</xrotectContents>
<xrotectContents>False</xrotectContents>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<xrotectStructure>False</xrotectStructure>
<xrotectWindows>False</xrotectWindows>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body bgcolor="#ffffff">
<TABLE ><TR>
<TD ALIGN="left" DIR="LTR"><SPAN STYLE="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
COLOR: #000000; FONT-STYLE: italic; TEXT-DECORATION: underline; FONT-WEIGHT:
400">Arial Italic </SPAN></TD>
</TR>
</TABLE>
</body></html>
Could somebody please let me know how can I avoid the warning when I open
the above excel in the MS Office 2007.
Should I need to add any MIME type in the above excel to avoid the warning.
Thanks In Advance,
Vidya