Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help with jasper reports

 
Bharat Sankannanavar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have designed the jasper report in iReport and integrated it with jasper server. It works perfectly. But I am facing problem with my next requirment. I need to integrate the same report with my jsp application. I meant I am not getting how to integrate this report in eclipse so that I can access it through one of my jsp pages(By providing the link to the report). Any help will be appreciated. Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have designed the jasper report in iReport and integrated it with jasper server. It works perfectly.

How are you accessing the report when it's running on Jasper Server?
 
Bharat Sankannanavar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf Dittmer: Still I am not able to access it through eclipse. I have just created .jrxml file.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure how you think Eclipse will help with this. Is that supposed to have support for this kind of thing?

My question was: you said the report worked fine. How do you know that? You obviously must have run it somehow - how?
 
Bharat Sankannanavar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run the report in jasper server. There it provided the required output.
I really dont know whether Eclipse will help with this or not, but my only requirement is to integrate that report in my web application.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run the report in jasper server. There it provided the required output.

That's what is of interest here. How, exactly, are you doing that? Tell us lots of details. Is this a web app? If so, the report should have a URL, yes? If so, why can't you link to that in your web app? etc. etc.
 
Stew Artist
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently checking out Jaspersoft and in the documentation, they have a section about web service API for the Report Server. I don't know if you have access to the Report Server or not but here is the link to the HTML document. http://community.jaspersoft.com/documentation/jasperreports-server-web-services-guide/v550/introduction
 
Raju kansas
Greenhorn
Posts: 4
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you design an report on iReport tool and compile you will have 2 files (.jrxml &.jasper). Try to create a anchor link in the jsp with the name of the report and write a method in servlet or action to generatepdf by providing the compiled jasper name of the report . Please make sure you copy the .jrxml and .jasper files into the web folder of the project. It should open a PDF report for you. I have attached the code which might help you but you need to tweek it as per your requirements.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic