It's not a secret anymore!
The moose likes Servlets and the fly likes Crystal Reports using java servlets. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Crystal Reports using java servlets." Watch "Crystal Reports using java servlets." New topic

Crystal Reports using java servlets.

Bhasker Reddy
Ranch Hand

Joined: Jun 13, 2000
Posts: 176
Can we call crystal reports using java servlets.
Please let me know if you have any example code that does this work or any web site or any reference.
Basically I need to call a bunch of crystal reports using Java Servlets and publish on the internet explorer.
Padmanaban Jayabalan

Joined: May 08, 2002
Posts: 14
Hi Baskar,
You can send the required parameters from servlet to call the crystal reports.
From your query I assumed that you are working with Crystal Enterprise 8.0 configured with an HTTP Server other than IIS(like IBM HTTP Server)
For configuration of Crystal Enterprise with IBM HTTP Server refer to Crystal Decisions Knowledge Base.
Either you can keep all the reports in a folder, and give the path with the "Report Name(*.rpt)" in the servlet
You can publish the report in the crystal server and give the ID (instead of Name) in the servlet.
Try this out:
+ReportFolderName(virtual path defined in the Http Server where reports are kept)
+ "?init=html_frame&apsuser=administrator&apspassword=&apsauthtype=secenterprise"
+ "&promptex-Parameter1=
+ Variable1
+ "&promptex-Parameter2=
+ Variable2
+ "&promptOnRefresh=0";
Here "apsuser" and "apspassword" are the user name and password which are specified for Crystal Enterprise Logon.
Hope this will work for u.
I agree. Here's the link:
subject: Crystal Reports using java servlets.
It's not a secret anymore!