ExcelQuicker2.2在.NET1.1中可以正常使用,但当我引入到2.0的项目中时,连最简单的报表也出不来。
是不是要在哪里设置一下才可以使用的?或者ExcelQuicker2.2在.NET2.0环境中根本就不支持?还请使用过的高手帮我一下。
///下面是我的代码,老是报错:The given path's format is not supported.
//模板完全路径,注意是完全路径
string strTemplate = Server.MapPath("Template/Sample01.xls");
string strFileName = Server.MapPath(EQWebKit.GenerateAutoFileName());
EQApplication objApp = new EQApplication(strFileName, EQReportFormat.Excel, strTemplate, false);
//objApp.AddOutputFile(strFileName, EQReportFormat.HTML); //Command to output a html format report file at the same time
Hashtable table = objApp.Output(); //这句出错
string strFileName1 = table[EQReportFormat.HTML].ToString();
string result = EQWebKit.GetInsideHtmlReport(strFileName1);
Response.Write(result);