如何使导出的excel文件为只读,不能对其修改?
蛋挞菠萝包 2008-10-07 04:19:32 如何使导出的excel文件为只读,不能对其修改?
我的导出代码是:
HttpContext.Current.Response.Charset = ""
HttpContext.Current.Response.Clear()
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"
HttpContext.Current.Response.AddHeader("content-disposition", "ExportFile.xls")
HttpContext.Current.Response.Write(Session("ExportFile"))
HttpContext.Current.Response.End()
谢谢回答!!!