ireport

Inetgrating iReport(with large no of sub reports) with Spring MVC

折月煮酒 提交于 2019-12-12 01:58:12
问题 My current application includes a functionality of displaying a report designed in iReports 4.1.1 from Spring MVC at front and using PostgreSQL at back. Now i am more of concerned about its performance issues. The Main report which will display data has as many as 20 subreports at most. and each subreport has high cost query running for it. So what are the chances of having performance issues when the user count increases (in short when application scales)?? And if there is any such potential

JasperReports: fonts issues [UniJIS-UCS2-H (Japanese)]- converting old reports to new version

孤街浪徒 提交于 2019-12-11 20:47:44
问题 I am sure this question was asked so many times before, just need some clarification, i have bunch of reports made using older version of the iReport 2.x and JasperReports 3.1.0 , when I tried to recompile using the latest version of both iReport and JR report, i keep getting error. Error exporting print... Could not load the following font : pdfFontName : HeiseiKakuGo-W5 pdfEncoding : UniJIS-UCS2-H isPdfEmbedded : true Many of the older reports uses these fonts: HeiseiKakuGo-W5, HeiseiMin-W3

How to add page number in multipage pdf report

我是研究僧i 提交于 2019-12-11 19:15:54
问题 I have created multiple pages pdf report using iReport as below. Pdf report How to put page number like (page 1 of 2) in this pdf report ? If i will put same in iReport it will take all pages as separate page and give numbers accordingly, like: for page1.jrml >> page 1 of 2 and page 2 of 2 for page2.jrml >> agian same page 1 of 1 ... it should be like: for page1.jrml >> page 1 of 3 and page 2 of 3 for page2.jrml >> page 3 of 3 Please suggest. 回答1: You page numbering won't be correct because

Passing JRBeancollection datasourse to master report and subreport

耗尽温柔 提交于 2019-12-11 18:43:22
问题 I want to pass the JRBeancollection datadourse to main report and from main report to subreport.. I have included this subreport in summary section of master report.. please mention the steps i want to do in ireport including the inbuld parameters how to set. 回答1: Finally I have done it. Actually datasource was not going in subreport. So I have changed the property of when no data to all sections, no data... Then I have passed the collection variable where I have fetched the subreport records

如何用开源bi,打造自己的轻量级bi系统

佐手、 提交于 2019-12-11 16:36:29
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 对于程序员来说,开源的东西都是好的,别的不说,因为可以自己自己随意开发,毕竟每个人都喜欢自己写的代码嘛,也或者,就是不想花钱哈哈哈哈(扎心了) 就拿最近很火的BI来说吧,BI分两种:开源BI和商用BI,说起开源BI就是有爱又恨,这一切都要从微软带起了商业风说起.... 我在网上搜到了一下2018年BI的市场占有率: 说到软件,可能第一反应就是国外的好,于是就先尝试了国外的开源BI。第一个接触的开源BI是pentaho,实在是太臃肿了,花了半年时间没有搞定,bug又多,修改不了。第二个是superset,可视化很强大,不过需要安装Linux,对于非技术人员很不友好,毕竟现在的BI都主打自助式。第三个开源BI就是JasperReports了,这是程序员最受欢迎、最常用的开源报表工具,常和ireport一起搭配使用,不过它有两个致命的缺点:需要学习编程,不支持多源数据源,这无疑是把自己未来的路给封死了....使用了这么多之后,我们决定试试国内的开源BI。 国内的开源BI很多都是假开源,阉割很多核心功能,或者是商业用就要收费。而BI产品又很贵,在商业bi用的比较多的就是tableau,sever价格10万,10个账号,增加一个账号需要1万。由于最近要给公司实施BI,和工程师聊过,如果自己开发一套BI的话,工作量非常大

Jasper report Line chart Category expression same value is printed only once

久未见 提交于 2019-12-11 15:13:39
问题 I am using Jasper report line chart. In that line chart Category expression same value is printed only once . Here, In Thread name column is specified as Category expression in Line chart. Redundant values are not printed. Only the unique names are printed . I want all my names , even if it's same name. How can fix this issue ? 回答1: You have to wrap your String value which is printed as the category label into an object which fulfills the uniqueness constraint. You have to create a java class

How set jdni.properties on ireport

。_饼干妹妹 提交于 2019-12-11 14:34:20
问题 7.2 with ejbql connection my problem is that when i test the connection, fails because Could not find datasource, in the log says: Caused by: org.hibernate.HibernateException: Could not find datasource Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I guees can be the jndi.properties that in the wrong directory, i tried put into java_home

How do I hide a table that has no data on ireport?

穿精又带淫゛_ 提交于 2019-12-11 13:05:15
问题 How do I hide a table (not include in layout) that has no data? 回答1: If you have the table on its own band, what I typically do is set a print when condition on the band that only shows the data if any object in that band has data. Say your table is something like this: item1 item2 item3 The print when expression would look something like this: item1 != null || item2 != null || item3 != null If you're referring to a subreport built using a collection, then I just check to make sure the

How to add a symbol ₺ (Turkish Lira) in iReport

你说的曾经没有我的故事 提交于 2019-12-11 10:10:01
问题 $P{DETAILPARAM} = " Tarihinden bu güne kadar <style isBold='true' pdfFontName='DejaVu Sans'>"+new java.text.DecimalFormat("#,##0.00").format($F{TOTAL_DEBT})+" ₺ </style> Borcunuz vardır." Font = DejaVu Sans This like add $P{DETAILPARAM} in parameter. And export PDF, but do not show "₺" this symbol. What must I do? 回答1: The Turkish Lira has unicode U+20BA and since it fairly new (2012) you need to be sure that this unicode is supported by your selected font . I tried with the font dejavu-serif

Japanese fonts not visible in the export pdf in iReports

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 09:56:44
问题 I ran a report through iReport which consists of data in Japanese. When I preview it, through internal Preview, I am able to the see the data in Japanese. But when i do a PDF Preview, none of the Japanese characters are visible. I use iReport 4.1.1. I installed Adobe Reader 9. Can anyone suggest me how can I get the japanese fonts in PDF. Waiting for the reply. 回答1: Do you set "iTextAsian.jar" to classpath ? And configure font and encode. Japanese font : "HeiseiKakuGo-W5" or "HeiseiMin-W3"