jsp页面中显示word/excel格式的文档的方法
word页面只要在jsp头设置如下指令: 实现代码如下: excel如下: 实现代码如下:
word页面只要在jsp头设置如下指令: 实现代码如下: excel如下: 实现代码如下:
实现代码如下: 'application/andrew-inset', 'hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'doc' => 'application/msword
第一种方法: 实现代码如下: Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "Application/msword"; string s=Server.MapPath("C#语言参考.doc"); R
ContentTypes : "ez","application/andrew-inset" ContentTypes : "hqx","application/mac-binhex40" ContentTypes : "cpt","application/mac-compactpro" Conte
最近经常有人问到这类问题,在此转贴一下,内容: 1。数据库表结构(Access): UserID:Text(保存上传文件的用户ID) FileContentType:Text(用来保存上传文件的类型,eg:"Application/msword",主要用来使用户能正确下载此文件) FileConte