Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing pictures at runtime
Message
From
07/08/2003 11:20:05
 
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00817385
Message ID:
00817770
Views:
25
You have to inherit an interface to the section object and then bind to the events. You can't just do a CREATEOBJECT() on it. When the section event fires, you're code will automatically fire.

>I swear, this project will be the death of me yet. Of course, given that it took until version 9 of CR to get even the simple task of printing multiple copies working properly...
>
> I am still stumped as how to capture the FormatSection event, since it seems to be about 3 or 4 levels down into the object model. On top of that, I need to programmatically find my picture field, or else write a separate program to generate each report, which seems pretty foolish. Each report has but 1 picture in it, but depending on the length of various subreports that come between the top and where the picture is, have no way of knowing ahead of time where exactly the picture will be. Also, how does one determine what Section an object is in? Just count all enabed sections from the top of the report in the designer? Or do the supressed (no drill down) sections count even though they are supressed? It SEEMS like this should all be rather simple, but I've noticed this about a lot of ActiveX controls, the object model explanations seem to be 'missing' something. There's a lot of detail in the RDC help, but I must have missed the part that shows how it all fits together to access
>various elements.
>
> I have my Application object. I have my Report object. Now how do I get the Section objects collection? If only they could display an image after beign fed a file name.... I was following up on this on the Crystal Decisions site and notice people having the same issues with ASP - and it looks like they have no out since ASP doesn't seem to allow access at all to the event model, at least we have that in VFP so theoretically what I am trying to do should be possible.
>
> Randy
>
>Having kids makes you gray? Try programming....
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform