dynamically settings elements top and left in Jasper reports - jasper-reports

Can somebody help me by letting me know if we can set the x and y parameters dynamically
while generating reports using JasperReports instead of predefined values for the co-ordinates?
Thanks!

Yes, we can.
You can use JasperReports API or DynamicJasper API for this purpose. With help of these Java API we can dynamically build the report design.

Related

Best way to create report and template in ReportServer Community

Currently in my work I started using ReportServer, I researched and apparently the way to create reports here is through other tools like JaspeReport, is this so?
I also have the need to generate a template (or background) that will change in this report, how is this done? Should I do it in JasperReport or ReportServer can do it?
JasperStudio by tibco is typically used to create a Jasper report. ReportServer is a BI server with which you can use different report formats (Jasper, Birt, Crystal) together in one server. At https://reportserver.net/en/documentation/ you will find a comprehensive documentation and at https://forum.reportserver.net/ a user forum for ReportServer questions.

JasperReport - different orientation(landscape and portrait) in same report

As asked by few other members, on similar line, I want to have landscape orientation for only one of my subreport. I am using iReport 5.6.0 and JasperReports 5.6.0.
I searched and almost all solutions suggest to have 2 separate reports and add/append them programmatically as mentioned here.
This solution is probably not ideal for me as I have 4 dynamic subreports(can produce variable number of pages at run time) and I want only third subreport to be landscaped. So, at run time it will be difficult to identify the point to append my landscaped report.
Questions that I have:
Is this native feature now introduced in any new version of iReport to support different orientation of subreport?
If no inbuilt support in iReport, how can I programatically add
subreport in between, if I don't know at which location/page the subreport will be added.
I tried to look for a solution in JasperSoft Studio as well, but not success.
Thanks in advance.
Starting with JasperReports v6.0 you may achieve what you want with a Report Book. It is basically a report bundle where each report can have a different orientation.
But since Jaspersoft Studio(with version 5.5.0) became the official design client for JasperReports, you will not find this feature in iReport. So starting with Jaspersoft Studio v6.0 you will be able to use it.

JasperDesign object VS. Dynamicreports VS. DynamicJasper

I'm a newbie in Jasper reports, did some research and found three options for Dynamic report creation:
1) JasperDesign Object of Jasper reports Library
2) DynamicJasper
3) Dynamicreports
What ares pros and cons or differences between these options. I need to start my project As soon as possible.
I would appreciate your help to get a better overview.
Thanks
Depending on the complexity of what you are trying to do, Dynamic Jasper could be the best option:
It has a lot of examples and docs
(you have test sources, that you can find them in the bundle, to test all examples they give you)
Make released very often
(You have released from JR 3.5 to JR 6.0)
It easier and you need less code to write a dynamic reports, compared to using JR capabilities
I have seen more usage of Dynamic Jasper than Dynamic Reports
I wouldn't use Jasper Design object if I were newbie or I were not used to working with the JR's API.

Does JasperReports have distinctcount(col1,col2) option?

We have crystal report already built with us. We need to understand and make crystal to JasperReports. We are using iReport 4.5.1 for designing reports.
I want to know that crystal provides distinctcount(col1,col2) fields , what is the similar option available for the JasperReports?
Please let me know if am not clear with my question

interactive jasper reports

I am using jasper reports in my project to generate html reports. But the generated reports are static. Now we want to add some interactive features in it, like simple sorting and searching of columns. This is preferably to be done the client side. How can this be achieved ? So far I have tried to embed jquery into the generated report with no luck. Does jasper report provide such kind of functionality?
Use parameters and re compile the report every time you want to filter the data.
With your meaning of the word "interactive", nope that is not possible. A report is only a report - a presentation medium that shows data in such manner that is required by the business rule. You can format data here. You can stylize it, add image and what not. A client side application is probably what you want.
Well, your exact requirement can be achieved if you publish the Jasper Reports on the Jasper Server. Once published, all your reports become interactive (For Charts, you must use the PRO charts and not the basic HTML charts but for tables, it works automatically.)
Once you publish it on the Jasper Server, the features that you get are:
Sort button with various types
Export the Report to many formats (PDF, XML, etc - more than 10).
Zoom IN and Zoom Out.
Bubble for your charts making them interactive, etc.
Yes, interactivity is possible in Jasper Reports, but the thing is that you need a Jasper Server Pro or Enterprise version for achieving this. If you are using a community version, it is impossible to create interactive reports. You can download the free trail pro version of jasper server for 60 days from this link https://www.jaspersoft.com/download
For much more details go through this link https://www.jaspersoft.com/community-commercial
Choose according to your requirement.