Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling crystal report from jsp

 
sweta naidu
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Sai Venkat
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic