wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Crystal Reports using java servlets." Watch "Crystal Reports using java servlets." New topic
Author

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
Greenhorn

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
or
You can publish the report in the crystal server and give the ID (instead of Name) in the servlet.
Try this out:
"https://"
+CrystalServerName
+ReportFolderName(virtual path defined in the Http Server where reports are kept)
+ReportName
+ "?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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Crystal Reports using java servlets.
 
Similar Threads
generating reports in servlets?? MAHA please helppppp
report generation using crystal reports
Java Accessing Crystal Reports
JSP-Crystal Reports
Crystal reports and java