ireport jasperreport

http://ireport.cubebi.com/manual/16.php 

 

我用的是ireport3.5.2使用时需要用向导(包含数据源)才可以和数据库连上。ireport3.5.2与ireport3.0.0一起配合使用。

hibernate 连接需要把项目的hibernate.cfg.xml和实体类加入到ireport的classpath中。

 

Cannot cast from Date to Number ???

 

 

HQL查询和Hibernate连接(HQL and Hibernate connection)

从jasperreports1.2版开始,Jasperreports提供了一种直接使用HQL(Hibernate Query Language)来创建报表。要使用这个功能,首先我们需要设置一个Hibernate connection。把所有的JAVA编译好的类,jar包和使用Hibernate mapping的配置文件放在classpath里。换句话说,iReport必须要保证可以访问所有的你需要使用的*.hbm.xml文件。

把这些对象添加到classpath中的方法是,选择主菜单中的ToolsàClasspath,在弹出的窗口中设置你需要加入到classpath中的对象。

 

2.ireport3.0 :没有这种类型的输出格式指定外部查看器。请在选项里设置。 ??

 

 

 

你可能感兴趣的:(xml,Hibernate,PHP)