lucianc
Members-
Posts
5,609 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Everything posted by lucianc
-
The SVG is valid, the way JasperReports handles SVGs without dimensions probably needs to be improved. Log a bug in the trackers for that.
-
There seems to be a problem with SVGs that do not have explicit dimensions. If you can change the SVG, adding width="100" height="15" might help. You can also file a bug in the trackers if you think the problem should be addressed. Regards, Lucian
-
What kind of scaling type are you using the image element?
-
Creating a variable from a java.math.BigDecimal
lucianc replied to wayne.shepherd's topic in Products
Comparing BigDecimals with integer literals via == does not work in Java expressions. You'll have to do something like $F{..}.intValue() == 101 for instance, or switch to Groovy as report language. Regards, Lucian -
You don't need $P{..} inside $X{IN, ..}, the correct expression for WHERE_CLAUSE is IF($P{COLLECTION}.isEmpty(), "", "WHERE $X{IN, column, COLLECTION}") And if in other cases you do need a literal "$P{..}" inside an expression, you need to escape it as "$$P{..}" so that it doesn't get interpreted as a parameter value placeholder. E.g. IF($P{Value} == null, "", "WHERE column = $$P{Value}") Regards, Lucian
- 1 reply
-
- query
- parameters
-
(and 1 more)
Tagged with:
-
Seeing a runnable JRXML would help, otherwise understanding what happens would be rather difficult. Regards, Lucian
-
If the builtin stacked column chart types do not work for you, you can revert to a basic chart type and set the stacking property per series type (e.g. plotOptions.column.stacking) or per individual series using a SeriesProperty contributor.
-
See the Generic Elements section in the JasperReports Ultimate Guide (you can get it from http://jasperreports.sourceforge.net/JasperReports-Ultimate-Guide-3.pdf). Regards, Lucian
-
You can explicitly create Y axes and assign series to specific axes. See the attached sample report: the yAxis chart settings creates a new axis (_jrAxisIndex=1 means it's the second axis) and sets some properties for it, and SeriesProperty contributors set the series types and assings the series to the second axis. Regards, Lucian
-
Subreport in Table Cell won't see Fields/Parameters
lucianc replied to MiditecReportDev's topic in Products
Are you talking about the problem with Jaspersoft Studio not using the right dataset for subreport expressions? Log a bug at http://community.jaspersoft.com/bug-tracker so that the JSS team is aware about the problem.- 6 replies
-
- Jaspersoft Studio
- subreports
- (and 3 more)
-
Subreport in Table Cell won't see Fields/Parameters
lucianc replied to MiditecReportDev's topic in Products
What the subreport is missing is the connection on which to run its query. You can pass the connection from the master report by adding <connectionExpression>$P{REPORT_CONNECTION}</connectionExpression>[/code] in the subreport element.- 6 replies
-
- Jaspersoft Studio
- subreports
- (and 3 more)
-
Directly computing running/cumulative totals via measures is not possible. The only option is to compute the total with report variables, and then pass the computed values to the chart. See an example in the attached report (run with the Sample DB). Regards, Lucian
-
Subreport in Table Cell won't see Fields/Parameters
lucianc replied to MiditecReportDev's topic in Products
Jaspersoft Studio proposing main dataset fields/variables is a bug, consider filing it in the trackers. But a proper expression using the table dataset seems to work fine to me. Do you have a self contained example to reproduce the problem that you found? Thank you, Lucian- 6 replies
-
- Jaspersoft Studio
- subreports
- (and 3 more)
-
No, most likely you don't need jasperreports-javaflow. It's only required in environments where JasperReports is not allowed to create threads for subreports. Regards, Lucian
-
Use lamda expression in .jrxml file for jasper report
lucianc replied to agna.desai's topic in Products
Lambda expressions in reports work with a recent JDT compiler jar (e.g. 4.5.1 from Maven http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.eclipse.jdt.core.compiler%22%20AND%20a%3A%22ecj%22) and with the following properties in jasperreports.properties: org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8org.eclipse.jdt.core.compiler.compliance=1.8org.eclipse.jdt.core.compiler.source=1.8 It also works with the 1.8 javac compiler used for reports, but using the JDT compiler is the recommended setup. Regards,Lucian -
The line numbers from the stacktrace that you posted (at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createStatement(JRJdbcQueryExecuter.java:478) .. at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:295)) do not correspond to the 6.2.2 sources. Could you confirm that you are using a JasperReports 6.2.2 jar downloaded from sourceforge.net or via maven?
-
Element groups are not a good way to isolate elements that need to be printed together. Try using frames, or (even safer) separate detail bands for each line. Regards, Lucian
-
The jasperreports-javaflow jar is a variant of the vanilla jasperreports jar that has report fill classes instrumented for Javaflow continuations. The instrumentation is required by the Javaflow subreport runner, which is an alternative to the default thread subreport runner. The Javaflow subreport runner was mainly meant to be used in environments where spawning new threads is not allowed (e.g. in EJB container). In most cases the thread subreport runner works fine, and there is no need for the jasperreports-javaflow jar. Regards, Lucian
-
With 6.2.2 you don't need to configure the PL/SQL query executer in any way, it is there by default. Regarding the Invalid column type: 2000 error, please post the the report query and parameters, the procedure declaration and the DB and JDBC driver versions. Regards, Lucian
-
You need to use a font that includes glyphs for Romanian characters. The one used in the article example doesn't. If you don't have a specific font that you want to use, you can use DejaVu Sans which is bundled in jasperreports-fonts.jar (you can get it from https://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports%206.3.0/). Regards, Lucian
- 4 replies
-
- encoding
- export to pdf
-
(and 4 more)
Tagged with:
-
If SimpleJasperReportsContext doesn't work for you, you can write a new JasperReportsContext implementation that delegates getExtensions to an ExtensionRegistry. Regards, Lucian
-
issue with reginal language in PDF in java spring web application
lucianc replied to rupali.koshti's topic in Products
Can you please attach a PDF file (not screenshot). -
issue with reginal language in PDF in java spring web application
lucianc replied to rupali.koshti's topic in Products
Can you attach a PDF file that shows the problem? -
issue with reginal language in PDF in java spring web application
lucianc replied to rupali.koshti's topic in Products
I made a test with Arial Unicode MS in 6.2.0 and "पर्वती रॉ वॉटर" was displayed properly in PDF, see attached screenshot. Reproducing the problem that you are seeing requires a detailed (and self contained) test case. Regards, Lucian