on 03-02-2009 4:00 PM
Hi all,
I am working on an add-in for Crystal Reports and try to open an existing report located on a BOE, which is installed on a different computer.
I followed the available examples however I always get the error message "Failed to find an available Report Application Server.".
I checked that the RAS is running and I tried the program on two different BOEs but always the same error. Additionally I disabled the firewalls as this was described to be the reason for this error, but it didn't help.
Does anybody know what's wrong here?
Thanks,
Tobias
My code
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.Logon(
"administrator", pwd, serverName, "secEnterprise");
EnterpriseService enterpriseService =
enterpriseSession.GetService("InfoStore");
InfoStore infoStore = new InfoStore(enterpriseService);
enterpriseService =
enterpriseSession.GetService("RASReportFactory");
Object rrfObject = enterpriseService.Interface;
ReportAppFactory reportAppFactory = (ReportAppFactory)rrfObject;
string queryString = "Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
+ "Where SI_PROGID='CrystalEnterprise.Report' "
+ "And SI_ID = '1150'";
InfoObjects infoObjects = infoStore.Query(queryString);
InfoObject infoObject = infoObjects[1];
ReportClientDocument reportClientDocument = new
ReportClientDocumentClass();
reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID, 0);
Hi Tobias,
Make sure the guest account is enabled for the RAS service. Open up the CMC and enable the guest account for RAS. Then it should work.
You may also need to specify you are using RAS in your app. Here's a short VB sample:
Dim rcd As New ReportClientDocument()
'Dim path As String = "c:\Grouping and Sorting.rpt"
Dim path As String = "D:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\Samples\en\Reports\Feature Samples\Grouping and Sorting.rpt"
Dim svr As String = "vmdwboer3"
rcd.ReportAppServer = svr
rcd.Open("ras://" & path)
CrystalReportViewer1.ReportSource = rcd
Note Open method, this specifies a RAS server and using "rassdk" allows you to open an unmanaged report off the lcoal PC.
You also have to specify where the reports are located in the RAS service under the Server option. Try the about sample report or one you do have, you did not say what version, line above is for BOE XI R3.1.
Thank you
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.