【BO-SDK】-(RAS) Unmanaged RAS Session get_@old_devlib_05

xiangjinling發表於2010-09-24
for Unmanaged[@more@]

//Create a new Report Application Session

ReportAppSession reportAppSession = new ReportAppSession();

//Create a Report Application Server Service

reportAppSession.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");

//Set the RAS Server to be used for the service. You can also use "localhost" if the RAS server is running on your local machine.

reportAppSession.setReportAppServer("127.0.0.1");

//Initialize RAS

reportAppSession.initialize();

//Create the report client document object

ReportClientDocument clientDoc = new ReportClientDocument();

//Set the RAS Server to be used for the Client Document

clientDoc.setReportAppServer(reportAppSession.getReportAppServer() );

Note: All ReportClientDocuments created from the same ReportAppSession communicate with the same RAS server.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24167472/viewspace-1038867/,如需轉載,請註明出處,否則將追究法律責任。

相關文章