Business Objects 7008038 Manuale Utente
Crystal Reports Server XI
Upgrading Crystal Enterprise 10 Embedded Edition Applications
Dim ceSession As EnterpriseSession
ceSession = ceSessionmgr.Logon(“<CRS user name>”, “<CRS
password>”, “<CRS Installed CMS>”, “<Authentication Type>”)
password>”, “<CRS Installed CMS>”, “<Authentication Type>”)
.NET SDK (C#.NET)
EnterpriseSession ceSession;
EnterpriseService ceEnterpriseService;
SessionMgr ceSessionmgr = new SessionMgr();
ceSession = ceSessionmgr.Logon(“<CRS user name>”, “<CRS
password>”, “<CRS Installed CMS>”, “<Authentication
Type>”);
password>”, “<CRS Installed CMS>”, “<Authentication
Type>”);
COM SDK (ASP)
Dim objFactory
Set objFactory =
Server.CreateObject(“CrystalReports11.ObjectFactory.1”)
Server.CreateObject(“CrystalReports11.ObjectFactory.1”)
'Load the Crystal Enterprise Session Manager
Dim ceSessionManager
Set ceSessionManager =
Server.CreateObject("CrystalEnterprise.SessionMgr")
Server.CreateObject("CrystalEnterprise.SessionMgr")
'Logon to the Enterprise CMS
Dim ceSession
Set ceSession = ceSessionManager.Logon(“<CRS user name>”,
“<CRS password>”, “<CRS Installed CMS>”, “<Authentication
Type>”)
“<CRS password>”, “<CRS Installed CMS>”, “<Authentication
Type>”)
Java SDK (JSP)
/* First, ensure that you add the following to your import
statement(s) */
statement(s) */
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.managedreports.*,
com.crystaldecisions.sdk.occa.infostore.*,
java.util.*
// Connect to Crystal Enterprise
CrystalEnterprise ce = new CrystalEnterprise();
ISessionMgr ceSessionMgr = ce.getSessionMgr();
IEnterpriseSession ceSession = ceSessionMgr.logon(“<CRS
user name>”, “<CRS password>”, “<CRS Installed CMS>”,
“<Authentication Type>”);
user name>”, “<CRS password>”, “<CRS Installed CMS>”,
“<Authentication Type>”);
3/30/2007 10:15 AM
Copyright © 2007 Business Objects. All rights reserved.
Page
6
crserver_xi_upgrading_from_ce10_embedded.pdf