Hi Community
I have a sctipt which schedules a Report, the script wait for the status "success" of the scheduling... that all works fine ...
now i like to stream the generated file.
I do have the Si_ID of the schedule.
This is the scriptpart where i try to open the instance.
Im able to stream the Report itself but am to stupid to connect to the generated instance.
the BOXIID is the SI_ID of of the schedule. With this ID im able to check the status of the schedule.
I was playing a bit with the variable "query" as you see in the code below.
***************************************
query = "Select * From CI_INFOOBJECTS Where si_id= " + BOXIID.ToString() ;
query = "select si_ID from ci_infoobjects where si_name = '508'";
//query = "SELECT SI_NAME, SI_ID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_PARENTID= 5007 and si_ID = 5751 and SI_INSTANCE=1";
myInfoObjects = myInfoStore.Query(query);
InfoObject myInfoObject = myInfoObjects[1];
CrystalDecisions.ReportAppServer.ClientDoc.ReportAppFactory boReportAppFactory;
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument boReportClientDocument;
////Retrieve the RASReportFactory
enterpriseService = BOESeesion.GetService("", "RASReportFactory");
boReportAppFactory = (ReportAppFactory)enterpriseService.Interface;
////Open the report from Enterprise
boReportClientDocument = boReportAppFactory.OpenDocument(myInfoObject.ID, 0);
*****************************************
I already tried to find this with the Forum search wit no success. :-( i found a lot of interesting articles but not the one which covers my request.
i hope somebody can help me how i have to query the instance to be ablte to use it in OpenDocument.
thanks a lot
regards
Dennis
Actual installed Product : 14.0.7