type and extension for web delivered Excel 2003 SpreadsheetML file

I am working with an API that has a report URL call. The report has an "Excel 2003 XML" format option. When that is selected they deliver it as:

Content-Type: application/vnd.ms-excel
content-disposition: inline; filename="report-name.xls"

OpenOffice.org up to 3.0 tries to bring this in as a text import and I'm concerned that Office 2007 might give users the extension mismatch warning. This shouldn't be our problem but people like to shoot the messenger so I am researching and looking for suggestions to give the API developers about file name extensions.

I can rename the file to .xlsx or .xml and OOo happly opens the file into Calc, but the file isn't really an .xlsx file, .xml is annoyingly generic and I don't know what Office 2007 will think of those options.

What is the best content-type and extension for web delivered Excel 2003 (11) SpreadsheetML files to avoid these and other issues?


应用程序/ vnd.ms-excel工作正常,只需将您的文件扩展名改为filename(扩展名为xls)

链接地址: http://www.djcxy.com/p/46870.html

上一篇: Excel不希望打开通过ASP输出下载的XLSX文件

下一篇: Web提供的Excel 2003 SpreadsheetML文件的类型和扩展名