cancel
Showing results for 
Search instead for 
Did you mean: 

A crystal reports IReportAppFactory.openDocument ,waiting for the openDocument () the method return value!

Former Member
0 Kudos

Hello everyone!

I use Eclipse to write a small program to open in the Crystal Report XI Server encountered a problem! The Java code is as follows:

  IReportAppFactory rptAppFactory = (IReportAppFactory) enterpriseSession.getService("", "RASReportService");

  System.out.println("-----Opening...");

  System.out.println("-----infoObject.Title:"+infoObject.getTitle());

  ReportClientDocument reportClientDocument = rptAppFactory.openDocument(infoObject, 0, Locale.ENGLISH);

  System.out.println("-----OK...");


And then in the JSP page to call this method!

The console to print:

-----Opening...

-----infoObject.Title:bookTest

Eclipse progress bar has been stuck motionless! Debugging display has been waiting for the openDocument () the method return value!

The bookTest.rpt statement can access InfoView through the browser address, browse content!

The Crystal is the new Report Crystal Report XI Server, is this what configuration? What steps are needed? What is the specific?

Please master answer, thank you!!!


-Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alex,

Is this a large report? If directly opened from the Crystal server using Infoview, how long it takes to render the report?

Have you tried opening any other report.

-Prithvi

Former Member
0 Kudos

Hi Prithvi,

It is not a large report, and it can open in the server. In  one another PC , it can run correctly, but in my PC, it can not run ,and deploy in the Linux , it can not work too.

- Alex

Former Member
0 Kudos

Is the machine where you have the code deployed and Crystal server on two separate physical machines?

If yes, what happens if you deploy the code in the same machine where you have your crystal server.

Former Member
0 Kudos

Is it  possibility  the host file configuration problem, or DNS problem??

Former Member
0 Kudos

It can be a possibility, however its hard to comment if you do not get an error. I would recommend to do a network trace and check if there is a two way communication happening.


Make sure that the machine running RAS and machine running Web App server can ping each other with IP, shortname and full qualified domain name. If not then add appropriate <ip shortname> key value pair entry in the hosts file.


-Prithvi

Answers (0)