Crystal Reports fail to load in web comonent
-
While using the Crystal Report SDK and Business Objects Enterprise XI R2 on a web site that is not hosted on the same machine as the Business Objects server all attempts to retrieve a report from any binding senario available from business objects all fail. A sample block of code for any who are curious.
string temp=null; string sampleReportName = "Report1.rpt SessionMgr sessionMgr = new SessionMgr(); EnterpriseSession enterpriseSession; EnterpriseService enterpriseService; EnterpriseService RasService; InfoStore infoStore; nfoObjects infoObjects; InfoObject infoObject; ReportAppFactory reportAppFactory; ReportClientDocument reportClientDocument; enterpriseSession = sessionMgr.Logon (UserName,password,"BOHost","secEnterprise"); try { enterpriseService = enterpriseSession.GetService("BOHost","InfoStore"); //the code dies here if it is hosted on a server other then the B.O. server RasService = enterpriseSession.GetService("BOHost",","RASReportFactory"); infoStore = new InfoStore(enterpriseService); infoObjects = infoStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME Like '" + sampleReportName +"'"); infoObject = infoObjects[1]; temp = infoObject.ID.ToString(); reportAppFactory = (ReportAppFactory)RasService.Interface; reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID,0); CrystalReportViewer1.ReportSource = reportClientDocument; } catch(Exception et) { temp =et.Message; enterpriseSession.Logoff(); } enterpriseSession.Logoff();
I wish those dead beats at Business Objects would spend more time fixing their buggy products then going around advertising to all the idiot managers who think this product is the answer to all their problems. We have a saying for this in America that the French don't understand, its called "False Advertising" Thanks again. I will try to stop complaining.:mad:nothing