on 10-07-2008 10:47 PM
Hi, guys.
I'm using BO XI/R2 SDK and Webi reports and I'm new for Java.
Could you, please, help me to resolve the situation: everything works till I'm trying to use object ReportEngine in the attached code and during debugging it gives me 'Source not Found. The source attachment doesn't contain the source for the file a.class'.
Meanwhile, the following jar files were provided: cecore.jar, celib.jar, ceplugins.jar, cereports.jar, cesession.jar, ceutils.jar, rebean.wi.jar, rebean.common.jar, rebean.jar
and code below works up to the line with invocation of ReportEngine object.
import com.crystaldecisions.sdk.framework.*;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.occa.infostore.*;
import com.businessobjects.rebean.wi.*;
// Connect to Crystal Enterprise
CrystalEnterprise ce = new CrystalEnterprise();
ISessionMgr ceSessionMgr;
IInfoObject report = null;
ceSessionMgr = ce.getSessionMgr();
IEnterpriseSession ceSession = ceSessionMgr.logon("Administrator", "", "BOSERVER:6400", "secEnterprise");
IInfoStore ceInfoStore = (IInfoStore)ceSession.getService("", "InfoStore");
IInfoObjects reports = ceInfoStore.query("Select SI_ID, SI_NAME From "
+ "CI_INFOOBJECTS Where SI_PROGID='CrystalEnterprise.Webi' "
+ "And SI_INSTANCE=0");
/////////////////////////////////////////////////////////////////////////////////////////stop working on the next line below
ReportEngines repEngines = (ReportEngines)ceSession.getService("ReportEngines");
ReportEngine widocRepEngine = (ReportEngine)repEngines.getService(
ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
// Retrieve the first InfoObject instance of the Desktop Intelligence document
IInfoObject infoObject = (IInfoObject) reports.get(0);
thanks in advance for your help
Michael
thanks for your reply, I did but still the same issue.
May be it is because I've built a stand-alone java application and I should build web-based one.
Pls, advice
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you are missing some jar. try including rebean.fc.jar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.