View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Vidya Vidya is offline
external usenet poster
 
Posts: 5
Default Getting Warning when I try to open excel in 2007.

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:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40"
dir=LTR
<head
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"

<titleservlet</title
<!--[if gte mso 9]<xml
<o:DocumentProperties
<o:AuthorUser</o:Author
<o:CompanyTrial</o:Company
<o:Created2008-11-26 22-19-32</o:Created</o:DocumentProperties
<o:OfficeDocumentSettings
<o:AllowPNG/
<o:DownloadComponents/
<o:DoNotOrganizeInFolder/
</o:OfficeDocumentSettings
</xml<![endif]--
<!--[if gte mso 9]<xml
<x:ExcelWorkbook
<x:ExcelWorksheets
<x:ExcelWorksheet
<x:NameSheet1</x:Name
<x:WorksheetOptions
<x:FitToPage/
<x:ProtectContentsFalse</x:ProtectContents
<x:ProtectContentsFalse</x:ProtectContents
</x:WorksheetOptions
</x:ExcelWorksheet
</x:ExcelWorksheets
<x:ProtectStructureFalse</x:ProtectStructure
<x:ProtectWindowsFalse</x:ProtectWindows
</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