[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 526
  • Last Modified:

Crystal servlet to .rpt file connection

Dear experts

I am brand new to Crystal reports.
I have a jsp page with two date fields, "fromdate" and "todate" and a button called "show report". when the user clicks on the show report button i am going to the Action class from action class i am forwarding the control to a servlet .

Now i want this servlet to pass the parametres such as

          String databasename = ReportConstants.DATA_BASE;
          String databasepwd = ReportConstants.DATA_BASE_PWD;
           String crystalip = ReportConstants.CRYSTAL_IP;
           String crystalfolder = ReportConstants.CRYSTAL_FOLDER;
           String crystalprotocol = ReportConstants.CRYSTAL_PROTOCOL;

and using the above parametres ,i want to "connect to the .rpt file" to display the report. But i am stuck with what needs to be done in the servlet TO CONNECT TO THE .rpt file.
Any ideas on how i can connect the above parametres in the servlet to the rpt file.
Anyhelp greatly appreciated

2 Solutions
I believe there is a great example of passing database connection information with Java at http://www.businessobjects.com/products/dev_zone/ This is version dependent so browse around those sites. Great examples for programming with Java.
You can probably find some stuff at the link above but a simple example to get you started can be found here: http://support.businessobjects.com/library/kbase/articles/c2011827.asp

Also, what version and edition of Crystal are you using because they don't all support java integration.  Typically you need to have either the Advanced or Developer edition.  A feature comparison can be found here: http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_feat_ver_ed.pdf


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now