[Asp.net]Aspose.Cells.Workbook.Save()方法不同版本下的区别

4.8.1.0

  1: workbook.Save(System.IO.Path.GetFileName(path), FileFormatType.Default, SaveType.OpenInExcel, HttpContext.Current.Response);

 

5.3.1.0

  1: workbook.Save(HttpContext.Current.Response, System.IO.Path.GetFileName(path), ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Excel97To2003));

 

总结:

  1. 参数顺序变化了,HttpResponse (5.3.1.0) 作为了第一个参数,(4.8.1.0) 却在最后一个。
  2. SaveType枚举参数被ContentDisposition枚举取代。
  3. FileFormatType枚举参数被XlsSaveOptions实例对象取代。

 

posted @ 2011-05-12 17:06  安布雷拉  阅读(6980)  评论(0编辑  收藏  举报