Microsoft
Software
Hardware
Network
Question : com.crystaldecisions.sdk.o<wbr />cca.report<wbr />.lib.Repor<wbr />tSDKServer<wbr />Exception:<wbr /> There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
I need help. I am trying to prototype/proof of concept a stand alone application in Java, that will open a crystal report, and export it to a pdf. I have done this in visual basic 6.0 and VB.net 2005, but never in Java and I am having major problems. It has been a while since I used Java, and I have never done what I am trying to do. The following is the version of eclipse I am using and the version of crystal reports that I have:
Eclipse Java EE IDE for Web Developers.
Build id: 20090920-1017
Eclipse Platform 3.5.1.M20090917-0800
CR Developer
Version 12.0.0.683
Product Type: Full
I have looked at the documentation from sap, and I have gone and imported the .jar files that they say you should import. I went into CRConfig.xml and removed the reportlocator tag so that I could use absolute paths to the report instead of relative paths. I read that I need to have all the imported .jar files in the Classpath. Are they referring to the Classpath tag in the Config file, or the Classpath environmental variable that you access through the control panel, or both. By the way I am using WindowsXP professional, and I am creating a desktop application, not a web based one.
I threw together the following code just to see if I could open a crystal report:
import java.io.IOException;
import com.crystaldecisions.repor
t.web.view
er.*;
//import com.crystaldecisions.repor
ts.reporte
ngineinter
face.*;
import com.crystaldecisions.sdk.o
cca.report
.applicati
on.ReportC
lientDocum
ent;
import com.crystaldecisions.sdk.o
cca.report
.data.*;
import com.crystaldecisions.sdk.o
cca.report
.reportsou
rce.*;
//import com.crystaldecisions.repor
ts.sdk.*;
import com.crystaldecisions.sdk.o
cca.report
.lib.*;
import com.crystaldecisions.sdk.o
cca.report
.exportopt
ions.*;
public class CrystalTest {
public static void main (String args []) throws IOException, ReportSDKException{
ReportClientDocument reportClientDoc = new ReportClientDocument();
String report = "C:/Report1.rpt";
try {
reportClientDoc.open(repor
t, 0);
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println(e.getSD
KError());
System.out.println(e.getMe
ssage());
System.out.println(e.getCa
use());
System.out.println(e.error
Code());
}
}
}
When I run it, I get the following exception thrown:
com.crystaldecisions.sdk.o
cca.report
.lib.Repor
tSDKServer
Exception:
There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
at com.crystaldecisions.sdk.o
cca.report
.lib.Repor
tSDKServer
Exception.
throwRepor
tSDKServer
Exception(
Unknown Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ReportA
ppSession.
do(Unknown
Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ReportA
ppSession.
int(Unknow
n Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ReportA
ppSession.
initialize
(Unknown Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ClientD
ocument.ne
w(Unknown Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ReportC
lientDocum
ent.new(Un
known Source)
at com.crystaldecisions.sdk.o
cca.report
.applicati
on.ClientD
ocument.op
en(Unknown
Source)
at CrystalTest.AnotherTest.ma
in(Another
Test.java:
15)
Exception in thread "main"
I need help. I need someone to give me advice. I spent two days trying to research this and havent gotten very far. I need specific advice. Baby-step advice. Go in and check this, or do that. Please dont assume I know anything. Any assistance is greatly appreciated. Thanks in advance.
Answer : com.crystaldecisions.sdk.o<wbr />cca.report<wbr />.lib.Repor<wbr />tSDKServer<wbr />Exception:<wbr /> There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
Java is not supported with CR 2008 except through CR4E or Eclipse
https://forums.sdn.sap.com
/thread.js
pa?threadI
D=909545
mlmcc
Random Solutions
slow network problems
Disable Display on VNC Server
Netware 3.12 Purge?
Citrix Secure Gateway
Wireless Networking w/ Satellite internet service
Internet configuration on win 2003 server
How to convert java application made in Netbeens to a java applet ?
How I can convert coordinates from xls to google maps KML file?
Trouble Reaching Mp3sparks.com
profile problem