ireport

How to pass fields from main report to table element?

佐手、 提交于 2020-01-03 17:12:20
问题 Until now i used the column-header an detail band to generate tables. Now i want to use the table element in iReport (4.0.2). I tried it this way: iReport: Passing parameters from a main report query to a dataset query for a table or list But it didn't worked for me. I think because I want to pass a field and not a parameter. With this method, I get an table, but only with 1 row (need to be 17). I'am using JRMapCollectionDataSource. How can I show my whole set of values in the table? 回答1:

iReport exported pdf does not show correct font

喜欢而已 提交于 2020-01-01 03:36:10
问题 A PDF generated in iReport using the 'Times New Roman' font appears to be using 'Arial' for its print version. Any idea what the problem is? 回答1: I've found that, at least for me, I must explicitly set the pdfEncoding attribute, as well as pdfFontName and isPdfEmbedded, on each font tag in the xml, even when using the system encoding, and that "Identity-H" seems to be needed when using unicode. So: Make sure your ttf font files are available on the classpath <font ... pdfFontName="filename

iReports is not work with JDK 8?

爱⌒轻易说出口 提交于 2019-12-31 06:54:06
问题 I have some issue here, I searched it and got that iReport Designer cannot working with JDK 8. but I need to using method on my project that using JDK 8. if I use my method it will give a warning. Unsupported major.minor version 52.0 is there any solution for it? so I can run my method? 回答1: As Alex already said, iReport Designer is deprecated and will not be supported any further. Since version 5.5 Jaspersoft Studio is the official and supported Client for Jaspersoft. In Jaspersoft Studio

Jasper iReport custom date and custom time

a 夏天 提交于 2019-12-31 04:00:07
问题 In Excel, I have a date format yyyy.MM.dd hh:mm and a time format hh:mm. I set this as a source for an iReport database. For the date I set a custom date format in iReport, same as in Excel. Then I set class="java.util.Date" . For the time, which class should I choose? I've tried many, none working. I think, the problem is, that I cannot set another custom date format, so the iReport does not recognise it. Thank you for your help. 回答1: It is quite slightly harder to solve this your new case

Blank space at end of page

五迷三道 提交于 2019-12-31 02:56:14
问题 Background A subreport with a column title and a detail section both set to 20px high. When the subreport record displays on the main report, the subreport prints as expected until when it reaches at the bottom of the page. Then the subreport prints just the column header and left blank space, then again starts on new page with column header and its detail. Question So, would you make it either print the whole subreport on same page, or start whole report from new page? Master Report JRXML

Blank space at end of page

北城余情 提交于 2019-12-31 02:56:07
问题 Background A subreport with a column title and a detail section both set to 20px high. When the subreport record displays on the main report, the subreport prints as expected until when it reaches at the bottom of the page. Then the subreport prints just the column header and left blank space, then again starts on new page with column header and its detail. Question So, would you make it either print the whole subreport on same page, or start whole report from new page? Master Report JRXML

把报表插入 Word 文档(api)

China☆狼群 提交于 2019-12-29 23:49:30
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 润乾报表制作完成后,不仅能实现展现及导出等功能,还能够根据用户需求, 通过指定模版文件中的书签名称确定插入位置,然后将报表、 图片、 文本内容插入到新的 Word 文件中。 本文主要介绍润乾报表插入 word 文档的具体步骤。 首先介绍下功能原理: 1、 建立 word 模版,在需要插入润乾报表的位置定义“书签”; 2、 Api 根据 word 书签位置,插入计算后的报表对象; 3、 输出根据模版生成的 word 文件。 具体实现过程及相关代码: 1、 建立 word 模版 2、 Api 计算报表,并通过 DocxChanger 类将报表结果插入指定书签,输出 word 结果 import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import com.raqsoft.dm.Sequence; import com.raqsoft.report.model.ReportDefine; import com.raqsoft.report.usermodel.Context; import com.raqsoft.report.usermodel.Engine; import com.raqsoft

How to pass a List of JRBeanCollectionDataSource to a subreport

喜欢而已 提交于 2019-12-28 16:08:11
问题 I am generating a report from a JRBeanCollectionDataSource. This report is about a customer's order. This is my code public class Customer { private String customerName; private String customerNo; private String customerAddress; private ArrayList<CustomerOrder> customerOrders; //Getters and Setters } private class CustomerOrder { private String itemName; private BigDecimal amount; private int itemQuantity; //Getters and Setters } When a customer a report containing the customer details and a

How to show arabic,Hebrew,etc language fonts on jasper (iReport) reports

▼魔方 西西 提交于 2019-12-28 04:27:16
问题 I have this simple tabular report with many columns with different types . But when printing the report with rtf (word) extension the columns with numbers or date appears on the report . the columns with with Arabic content appear on the report . But when printing the report with PDF extension the columns with numbers or date appears on the report . the columns with with Arabic content DOES NOT appear on the report . I have tried many different fonts and changed properties like PDF embed and

how to do java counter i++ in iReport

a 夏天 提交于 2019-12-25 14:03:45
问题 i want to do counter variable, im using ireport 3.4.2 in java we can simply do like i++ to increament. how can i do t in iReport? 回答1: $V{variable1}++ is absolutely legal in iReport, as long as variable1 is Integer and the Calculation is Count or Incremental Count 回答2: The above answer might be right also, but i didnt tried it. I try to created variable and set the calculation field "count" and then set the variable expression correctly based counter factor. it works. 来源: https:/