Business Objects 7008038 Manual De Usuario

Descargar
Página de 18
Crystal Reports Server XI
 
Upgrading Crystal Enterprise 10 Embedded Edition Applications
 
 
Create an InfoStore service object 
This section provides the code to create an InfoStore object. This object is used 
to query for the objects published to the Crystal Reports Server system. Add the 
following sample code for the appropriate SDK to your application: 
 
.NET SDK (VB.NET) 
Dim ceInfoStore As InfoStore 
Dim ceEnterpriseService As EnterpriseService 
ceEnterpriseService = ceSession.GetService("", "InfoStore") 
ceInfoStore = New InfoStore(ceEnterpriseService) 
 
.NET SDK (C#.NET) 
InfoStore ceInfoStore; 
ceEnterpriseService = ceSession.GetService("", 
"InfoStore"); 
ceInfoStore = new InfoStore(ceEnterpriseService); 
 
COM SDK (ASP) 
'Create the Enterprise InfoStore 
Dim ceInfoStore 
Set ceInfoStore = ceSession.Service("", "InfoStore") 
 
Java SDK (JSP) 
// Get the Enterprise InfoStore service 
IInfoStore ceInfoStore = 
(IInfoStore)ceSession.getService("", "InfoStore"); 
 
Querying for a report InfoObject 
This section provides the code to query for a report published to your Crystal 
Reports Server system (although you are able to query for any object published 
to the system).  
 Add the following sample code for the appropriate SDK to your application: 
.NET SDK (VB.NET) 
Dim ceReports As InfoObjects 
Dim ceReport As InfoObject 
3/30/2007 10:15 AM 
Copyright © 2007 Business Objects. All rights reserved.
 Page 
 
crserver_xi_upgrading_from_ce10_embedded.pdf