challenge to cr ppl....TRY to solve this..
Posted on 2005-04-20
My objective is to change the oleobjects source in run time..i am so close that i can browse thru the sections and find the oleobject..but the selolelocation threw me off...i cannot get that piece to work...
crSections = crRpt.Sections;
crOleObj = crRpt.oleObject;
for(var xx = 1;xx<crSections.Count;xx++)
crSection = crSections.Item(xx);
crReportObjs = crSection.ReportObjects;
if(crReportObjs.Item(yy).Kind == 6)
crOleObj = crReportObjs.Item(yy)
but i get the permission denied .
i read that the selolelocation can be done using hte section format event..
My situation is different..i am embedding the crviewer on the web page so that i dont have access to the withevents & stuff like that in VB...I have a reference to the crystal application send back to my client..so i can access most of the properties..
but i dont know if there is a replacement for the "withevents" or how to find out if the report is formatting the detail....
Is there any other way to do what i am trying to do(without using VB)...