Is avaliable to know JasperReports version only with the jrxml file? - jasper-reports

I just creating a new jrxml file with visual tool, but i don't know what version of JasperReports I needed, but I have some jrxml examples made with the correct version, if there anyway to know the version that created the reports? (inside a file or sth like that..)

Short Answer: No.
Long Answer: You can almost infer version from the JRXML.
Sometimes the JasperReports JRXML schema will change based on new features etc. Recently there was the introduction of a UUID attribute on many objects/elements. This UUID attribute could not be understood by iReport versions earlier than 4.1.2.
So there can be small differences that you can use to 'hint' at different JasperReports versions, but not much. Are you running creating the JasperReports for a software product?
You may want to peruse the supplied Jar files to get a clue as to which JasperReports version they are using, then match that with iReport?

Related

Accessible Tagged PDF with BIRT

We are using BIRT to create PDF-files from our website, but now we need to change the PDFs to meet the accessibility demands. I have tried to search for an answer how to make accessible tagged PDF with BIRT, but haven't found any answer. Even this https://www.eclipse.org/birt/ documentation doesn't talk about accessibility nor making tagged PDF.
So is it possible to add tags with BIRT or do we need to change BIRT to some completely different tool? If we need to change the tool, I would much appreciate info about tool which we could use. We have quite many PDF templates created with BIRT and all need to be changed to meet the accessibility demands.
With the Open Source version of BIRT, creating tagged PDFs is not possible AFAIK.
However, in a BIRT IDE built from source, it looks as if development in this direction started (IIRC there were "PDF Tag" properties in the advanced properties).
Maybe the commercial BIRT version from OpenText can generate tagged PDFs - I don't know and I would really appreciate more info about this topic from the BIRT project.
Edit: According to http://otadocs.opentext.com/documentation/ihub3/help/adg/adg24/index.html#page/ADG/DesigningReport.1.03.html#, this should be possible with the commercial version.

Acrobat reader cannot extract the embedded font 'PWLEAX+NotoSerifCJKsc-Regular-Identity-H'

I am using Jasper Report 6.9.0 version with Java 1.8.0_201 and Arial Unicode MS and NotoSerifCJKsc(especially for the traditional Chinese) fonts for the Jasper Report to display the Chinese Characters.
Pdf generated properly and I am able to see the complete content when I open it on the chrome, but if I try to open it with Acrobat reader then I am getting the error
"Cannot extract the embedded font 'PWLEAX+NotoSerifCJKsc-Regular-Identity-H'.
Some characters may not display or print correctly."
Is there something that needs to be updated?
This is a most probably a problem of the old itext library that jasper reports are forced to use due to license issues.
If you check dependencies of Jasper Report 6.9.0 in fact you will find com.lowagie » itext 2.1.7.js6
From this post the developer Bruno Lowagie states:
[*] Update: this problem can be reproduced if you use iText 4.2.x, a version that was released by somebody unknown to iText Group NV. Please use iText versions higher than 5 only.
And you can also read more about a similar problem here, basically the pdf's font-extensions seem to be not generated correctly by this old version of itext library.
Solutions:
Change font, try with another font.
or
Change to jasper-reports version 6.0 interesting is that this
version has the
dependence
to com.itextpdf » itextpdf 5.5.0 (for this version they somehow had a license to use a new version of itext)
A recent update to Adobe Reader introduced a change that caused Reader to start raising this error on PDF files produced by iText (and maybe other products).
Adobe just announced a new release of Reader that corrects this issue (19.012.20040).
See https://forums.adobe.com/thread/2645745

Jasper Reports Pro library for Compile & Generating HTML5 reports

We have built our own reporting engine where we compile and fill jrxml's using Jasper Reports library.
Recently, we are planning to include HTML5 charts to our reports. Evaluated JasperStudio 6 professional and created a chart which uses highchart.
We need this jrxml containg highchart to be compiled and filled using jasper report library, but couldnt find any documentation where I can download jasperreport-pro jar files.
I installed JasperServer-pro and can see jasperreports-pro-6.0.0.jar in their WEB-INF/lib folder. But where can I download these libraries and use it standalone?
I went through https://community.jaspersoft.com/wiki/jars-required-compile-simple-jrxml-html5-element which explains which jars are needed. But they say 'shipped with pro JasperReports API' which I cannot locate to download and evaluate.
supposing that you are a paying customer, since HTML5 charts are PRO only, I highly suggest you to contact the Technical Support. They will provide you all the info.
Some details must be set, like property for license location and others related to HTML5 configuration.
Regards,
Massimo.
P.S: you could also try to open a ticket on the JasperReports tracker asking them to detail the linked wiki article.

Eclipse based report designer for JasperReports

Some time ago, I used IReport to create reports.
Now I am an Eclipse developer and need something integrated into Eclipse.
I found JasperAssistant, JasperWave and JasperStudio and would like to hear somebody who has experience with these tools ?
JasperAssistant is a stagnant project, it hasn't been updated in years, so unless you're tied to using an older version of JasperReports I really wouldn't consider it.
JasperWave is good. It's easy to use and more reliable than the older versions of iReport, though it has it's issues. I'm using this personally and would recommend it, but I confess I have iReport as a backup and launch that instead if know I won't be touching code. Also, JasperWave is only made for JR 3.7.6, so if you want to use the latest version of JR you'll want to give it a miss.
JasperStudio is the latest thing from Jaspersoft, and seeing that it is from them I have high expectations. I'd definitely try it out, but as far as I know it's only for JR 4.1.1 (I'm fixed to using 3.7.6). There's probably a much greater chance of this being constantly updated as newer versions of JR are released, so this is what I'd choose if I were starting from scratch now.
Jasper Wave does not have the basic functionality of Tables and Crosstabs so that is also not of much use.
Jasper Studio is the way to go.

Using JasperReports without iReport

I would like to use JasperReports as a reporting library, but I can't use iReport (as I have learned from some sites), because the connection to the database and my requests are done from Java (I have done some complex calculations).
I have seen a lot of example that use iReport but I haven't seen one without it.
Also my reports should contain a lot of charts, it is painful to write all of that manually because I will generate a lot of reports and charts!!
My questions:
Is there an example how to do that? (I am using Java and JSF.)
Is a possible to use iReport? :)
Mmmh, I just noticed this question was asked more then 6 years ago... Will leave my answer here as reference.
If I understand correctly you want to create Jaspersoft reports without using Ireport or Jaspersoft Studio. As the report templates are in essence XML this is possible. For more information on the structure... see amongst other : https://www.tutorialspoint.com/jasper_reports/index.htm
To compile the report from it's source to the compiled report you can use IReport or Jaspersoft Studio. This can however also be done from Java code as shown here: https://www.developer.com/java/getting-started-with-jasperreport.html This reference is based on a quick search on the internet.
Hope this helps.
Kind regards.