用流打开open office ods 文件
string template = "Template.ods";
string path = Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["TemplateSavePath"].ToString().Trim()+template);
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment;filename=" + template);
//Response.ContentType = "application/ms-excel"; //Excel 就用这
Response.ContentType = "application/vnd.oasis.opendocument.spreadsheet";
Response.WriteFile(path);//传输到客户端
Response.End();
string path = Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["TemplateSavePath"].ToString().Trim()+template);
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment;filename=" + template);
//Response.ContentType = "application/ms-excel"; //Excel 就用这
Response.ContentType = "application/vnd.oasis.opendocument.spreadsheet";
Response.WriteFile(path);//传输到客户端
Response.End();