• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

calling crystal report from jsp

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a struts application and i want to call crystal report from jsp so that users can see the existing report.

The crystal report server is in the network and i have to provide authentication and then the report name. Can anyone suggest me where to start.
 
Marshal
Posts: 67449
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is much more about the Crystal Reports API than JSP technology, I've moved this to the Other Java Products and Servers forum.
 
sweta naidu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I am using crystalreports version 11 and tomcat5.5 application server. and it is a enterprise.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok you can call a javascript function. In the fuction provide the URL with report_id and parameters that are to be passed for the report template.
Example:

URL = reportURL+"?rpt=GRP_USER&db="+database+"&GROUP_ID="+grpId+&RANDOM="+counter;
window.open(URL,"GroupUsersReport","scrollbars=yes,resizable=yes,width=700,height=650");


Here I am passing the reportURL which points to Main.csp
In my example:
http://s-ce01d/crystal/ace/screens/main.csp that is -
http://servername/path/main.csp
Pass the parameters after '?' seperate the parameters with '&'.

Hope this helps.

Regards,
Sai

[ August 15, 2005: Message edited by: Sai Venkat ]

[ August 15, 2005: Message edited by: Sai Venkat ]
[ August 15, 2005: Message edited by: Sai Venkat ]
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic