i know that this is a trivial question but this is the best place to ask it. I have a database which is hosted on a website. I have written a Java program that accesses the database and through this program the user can view reports. I used Jasper Reports for this. Now i have a website where the user can log in and would like the user to be able to view the exact same reports but through my website. In other words, what is the equivalent of Jasper Reports for a web page? I know that there is something called JasperReports Server but Im not sure if that is what i am looking for and how is it possible to incorporate into into my html/php site. Can someone please direct me to the right place? Thanks.
You can display Jasper reports using any of the following approaches:
Publish JRXML reports into Jasper server and embed Jasper server into your application using IFrame.
Publish JRXML reports into Jasper server and call those reports in your application using Soap or Restful web services.
Use Jasper API to display jasper reports directly in your application. Refer Jasper reports for Java tutorials for more info.
Thanks,
Srikanth Kattam
Related
I am using DynamicReports which uses Jasper Reports in a web application I am making. I got it to work and all seemed good until I noticed that when I closed the Jasper Viewer it stopped my tomcat server. Upon further investigation I found out that the viewer (Java Desktop App) is just showing on my machine because it's also the server machine and doing it on a remote client, the pdf viewer is still showing on my server machine.
Is there a good way to get jasper reports to show on the client computer with a web app?
Or is there a good alternative framework to generate reports and either embed them in JSP or download to the clients machine?
May be it's a bit late to answer the question. But may be the others need help to.
So, I used DynamicReports in my projects with java and jsf. What you need to do is, convert the report object into PDF, Excel or HTML format and display it in webbrowser with url (PDF and HTML), or download it for Excel format. So, the DynamicReports will not open the JasperViewer (don't use report.show() -> it will open JasperViewer in local machine).
OR alternative what you can also do, create desktop application to receive jasper report object through websocket communication and print direct to default printer.
If there are others ways, may be someone can share it.
Unfortunately, DynamicReports project is discountinued or down somehow. May be it's time to find an other alternative, because there is no further development. The reachable site https://github.com/dynamicreports/dynamicreports and https://dynamicreports.lbayer.com/
I hope it can help.
I want to Integrate SpagoBI server in Grails or Java applications. I have developed some report in SpagoBI server and it is working fine. The same reports I want to display in Grails or Java applications.
You can use the SpagoBI SDK to integrate it in your web application (especially Java). Take a look here: http://wiki.spagobi.org/xwiki/bin/view/spagobi_sdk/
The SpagoBI SDK download contains examples of using the JavaScript tag library and Java libraries for retrieving available reports, executing, and displaying the report
You can also see a code sample I posted previously at the link below. It uses JSP and the SpagoBI Java library to execute a specified report (by label) and return a PDF or XLS.
http://www.spagoworld.org/jforum/posts/list/3592.page
I searched a lot regarding this topic but did not get any good answer.
Scenario:
We have Rest web service bases implementation in our project. Ideally frontEnd (Flex) call web service and backend send huge data point to frontEnd. Then frontEnd create chart of these data points and display to end user.
Our requirement is that user can export these charts and save as pdf file on the server. We are able to create JPG file from flex server and save as pdf file.
Problem occurs when end user has scheduled that chart report. Now that report can run at any time and may be browser is not opened at that time. So how backEnd will interact with frontEnd (flex) functions. Problems are:
browser is not opened so swf file is not loaded.
java/jsp need to interact with frontEnd(flex) as a reverseAjax so that frontEnd send JPG file back to server.
Does anybody face this issue before?
Is it somehow possible??
Asnwers/any leads are highly appreciated.
Please provide comments on this
Probably the only way to do this is to run a version of your Flex application (at least the charting part) on your server, and have your Java server interact with it.
I have faced a similar problem and have asked a similar question before. It is not very elegant, but what I mentioned before seems to be the only way to go.
I have a Java Application and I need to get a Jasper report located in Alfresco. Once I have the report I need to add some parameters and then compile it and generate a PDF.
I know this is possible, using alfresco API and Jasper Report API. I have searched in Java-backed Web Scripts Samples but I don't understand the examples, because i'm new in Alfresco and Java, so any clue would be appreciated.
You might be interested in Benjamin Rodriguez' Jasper Reports Dashlet which he submitted as part of last year's Dashlet Challenge. The dashlet makes it possible to configure and run Jasper reports from within the Share UI. This isn't exactly what you are trying to do but it may be a good source of example code.
We have a Java EE based web application and we want to integrate Pentaho reporting API into this application.
So, I'm trying to learn how Pentaho can automatically generate reports containing charts. I have downloaded Pentaho BI server and played with it for a few days. But I'm still clueless about the following issues:
How to generate reports dynamically at runtime without loading those *.prpt files.
Where I can get a simple tutorial about dynamic report generation
What the difference is between Community Dashboard Framework, charting tools and reporting tools.
The documentation on the Community Dashboard Framework site is not properly organized, and there is not a single tutorial about getting started.
If anyone can help me find the answers to some of my questions, it will be great!
You can define reports purely via the API of the reporting engine. Samrat is right on that the preferred way of defining reports is the report designer - as code changes are harder to maintain than changes of a GUI-editable external report definition.
I think the best way to go forward is to grab Will Gorman's book about "Pentaho Reporting 3.5 for Java Developers" which gives you a deep insight into the inner workings of the reporting engine and also how to define reports dynamically.
CDF vs Reporting: CDF is a javascript toolkit for creating interactive dashboards. Dashboards are aimed to provide a high-level overview over the state of your company with the ability to drill down or even customize them. Reports produced by the reporting engine are predefined/"canned" reports that we expect to be run frequently to answer specific business questions. Charts components are just components that produce a given chart for dashboards based on a set of input parameters.
CDF uses reports and charts as content in dashboards.
Without prpt files there is no pentaho reporting. To achieve dynamically, run the pentaho BI server and pass the parameters to the report. Load the report in iframe.