发现一个bug JasperRunManager.runReportToHtmlFile
2012-06-01 11:44
344 查看
使用静态的
public static void runReportToHtmlFile( String sourceFileName, String destFileName, Map<String,Object> parameters, Connection conn) throws JRException
无法指定destFileName
查看源码发现这样写的
/**
* @see #runToHtmlFile(String, String, Map, Connection)
*/
public static void runReportToHtmlFile(
String sourceFileName,
String destFileName,
Map<String,Object> parameters,
Connection conn
) throws JRException
{
getDefaultInstance().runToHtmlFile(sourceFileName, parameters, conn);
}
没有用到参数destFileName
绕过去的办法:
JasperRunManager manager = JasperRunManager.getInstance(DefaultJasperReportsContext.getInstance());
manager.runToHtmlFile(sourceFileName, destFileName, parameters, conn);
问题解决。
public static void runReportToHtmlFile( String sourceFileName, String destFileName, Map<String,Object> parameters, Connection conn) throws JRException
无法指定destFileName
查看源码发现这样写的
/**
* @see #runToHtmlFile(String, String, Map, Connection)
*/
public static void runReportToHtmlFile(
String sourceFileName,
String destFileName,
Map<String,Object> parameters,
Connection conn
) throws JRException
{
getDefaultInstance().runToHtmlFile(sourceFileName, parameters, conn);
}
没有用到参数destFileName
绕过去的办法:
JasperRunManager manager = JasperRunManager.getInstance(DefaultJasperReportsContext.getInstance());
manager.runToHtmlFile(sourceFileName, destFileName, parameters, conn);
问题解决。
相关文章推荐
- [Android_Bug]处理PhoneGap Application Error: "The connection to the server was unsuccessful.(file:///android_asset/www/index.html)"的错误
- 今天在做一个测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 发现java.io.File中 list()方法的一个bug
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 发现apache的mod_python存在一个BUG
- iReport+JasperReport+JSP 输出HTML方式预览
- 一个由sendfile引发的linux内核BUG
- 发现IE8一个关于下载office2007 docx文档的bug
- URLDownloadToFile的BUG
- 在ASP.NET中,发现的关于string转换的一个小Bug
- Sending Parameters to JasperReport
- [android开发IDE]adt-bundle-windows-x86的一个bug:无法解析.rs文件--------rs_core.rsh file not found
- 发现IE 9的一个独有的小bug,并附解决方案
- adb bugreport -- Failed to get bugreportz version
- JasperRunManager、JasperPrintManager、JRLoader、JRSaver的简单用法
- 发现一个testdriven.net变态的bug
- mysql 启动报错 /usr/local/mysql//libexec/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid'
- failed to open the runspace pool. the server manager winrm plug-in might be corrupted or missing