• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

calling crystal report from jsp

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic