解決IIS6.0無法下載Office 2007檔案格式(ex:docx)的問題
2008-08-13 19:53
423 查看
最近在寫有關檔案上下載的程式....
發現將Office 2007檔案格式(例如docx檔)的檔案上傳到server端是ok的...
但從client端要下載回來,卻發生了錯誤的現象....
最後到網路找了一下資料.才知道在IIS6.0要下載office 2007格式的檔案
要先到IIS管理員→網站→右鍵[內容]→HTTP標頭→MIME類型→新增→
副檔名:.docx
MIME類型:application/vnd.openxmlformats-officedocument.wordprocessingml.document
這樣就可以下載.docx檔了...
更多Office2007文件的MIME格式如下:
.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template
發現將Office 2007檔案格式(例如docx檔)的檔案上傳到server端是ok的...
但從client端要下載回來,卻發生了錯誤的現象....
最後到網路找了一下資料.才知道在IIS6.0要下載office 2007格式的檔案
要先到IIS管理員→網站→右鍵[內容]→HTTP標頭→MIME類型→新增→
副檔名:.docx
MIME類型:application/vnd.openxmlformats-officedocument.wordprocessingml.document
這樣就可以下載.docx檔了...
更多Office2007文件的MIME格式如下:
.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template
相关文章推荐
- 何解決 LinqToExcel 發生「無法載入檔案或組件」問題何解決 LinqToExcel 發生「無法載入檔案或組件」問題
- IIS6中添加对OFFICE 2007文档格式 .docx .xlsx .pptx等的支持
- java导出2007版word(docx格式)freemarker + xml 实现
- 微软office 2007在线编辑平台Office Live Workspace(docx转doc格式)
- 2007 Office system 檔案格式 MIME 類型
- IIS6中添加对OFFICE 2007文档格式 .docx .xlsx .pptx等的支持
- docx、xlsx 这种 office 2007 格式 设置 MIME
- Apache POI 简单操作word文档(2007 .docx格式)
- texlive2007安装以及中文字体解决方案這個是針對TeXLive2007的字體包,總的來說,它解決了以下的問題: 安好了UTF8和GBK的中易和方正字體, 字體名為fzfsk, fzhtk, fzktk, fzlsk, fzssk, fzy1
- java导出2007版word(docx格式)freemarker + xml 实现
- Office (2007) Open XML 文件格式简介【转载】
- Excel 2007 因為讀取或套用部份修訂記錄時發生問題
- Window7訪問Linux Samba共享文件問題解決。
- [Linux筆記] 利用 mount 指令解決 Read-only file system 問題
- 全新的Open XML文件格式——Office 2007面面观之(11) 推荐
- 关于Office 2007 Open XML 文件格式
- java利用Freemarker模板生成格式友好的doc文档(这种方式不支持docx)
- webservice出現"因 URL 意外地以 结束,请求格式无法识别"的解決方法
- Office (2007) Open XML 文件格式简介【转载】
- 把日期格式2007/7/1转换成 Jul,12,2007