jaspersoft-studio

Add custom data source to Jaspersoft Studio

Deadly 提交于 2019-11-30 23:47:47
问题 I am trying to fill a table by passing a custom data source to it. I have created a simple report with a table on it. The report it self gets the data from a ms sql database. I have written a java class similar to the class in this Example. But I get no value in table. At the example there is no scriptlet. I have checked the (String) this.getFieldValue("KN_FormelGG"); line of code. It gets the data from field and can show it on report. So I guess the bean data source is not filled. I call the

Use lambda expressions inside TextField expression in Jaspersoft Studio 6.3

亡梦爱人 提交于 2019-11-30 08:37:48
问题 I want to use lambda expressions inside a TextField expression like this: Arrays.asList($F{field1}, $F{field2}, $F{field3}).stream().filter(i -> i != null).collect(java.util.stream.Collectors.joining(" / ")) Assuming this values for the fields: $F{field1} = 1 $F{field2} = null $F{field3} = 2 The expected result is of the TextField evaluation is: 1 / 2 Instead of I'm getting an error in the IDE: Lambda expressions are allowed only at source level 1.8 or above And this is the exception inside

Jaspersoft Studio: How to use Collection of Java Beans in data adapter

て烟熏妆下的殇ゞ 提交于 2019-11-28 01:26:38
Docs are outdated and not helpful anyway. I use the dialog to add the class and and the static method, as well as the path to the .jar file holding the relevant classes. When I hit test connection I get an error saying it cannot find the class .... Yes the jar file is at that path. Do I need to further at that path somewhere else in the project properties or something?? Here's a link to the part of the docs that is supposed to describe this process I think your problem in full name of class - probably the package is missing in your case. Sample Here is the sample how it works in Jaspersoft

When export a report to PDF change the font

戏子无情 提交于 2019-11-27 01:53:26
I'm using Jaspersoft Studio 5.2 , and I did a report with Courier New font, and when I exports this to PDF, it's change the font to Arial . I'm using just the Studio tool. When I preview the report is all right, but when I export it's happens. What can I do with my report to export with Courier New font? My textField model that I'm using in report: <textField pattern="dd/MM/yyyy HH:mm:ss"> <reportElement uuid="f50b279a-b480-498f-8af7-be7e23c4b80b" x="415" y="11" width="105" height="10"/> <textElement> <font fontName="Courier New" size="8"/> </textElement> <textFieldExpression><![CDATA[new java

When export a report to PDF change the font

a 夏天 提交于 2019-11-26 12:29:11
问题 I\'m using Jaspersoft Studio 5.2 , and I did a report with Courier New font, and when I exports this to PDF, it\'s change the font to Arial . I\'m using just the Studio tool. When I preview the report is all right, but when I export it\'s happens. What can I do with my report to export with Courier New font? My textField model that I\'m using in report: <textField pattern=\"dd/MM/yyyy HH:mm:ss\"> <reportElement uuid=\"f50b279a-b480-498f-8af7-be7e23c4b80b\" x=\"415\" y=\"11\" width=\"105\"

How do I compile jrxml to get jasper?

筅森魡賤 提交于 2019-11-26 09:08:44
问题 In ant, how do I compile a .jrxml file to get a .jasper ? 回答1: There are three ways to compile jrxml to jasper. You can do direct compile via compile button (hammer logo) on iReport designer. You can use ant to compile as shown in the Ant Compile Sample. <target name="compile1"> <mkdir dir="./build/reports"/> <jrc srcdir="./reports" destdir="./build/reports" tempdir="./build/reports" keepjava="true" xmlvalidation="true"> <classpath refid="runClasspath"/> <include name="**/*.jrxml"/> </jrc> <