Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing pictures at runtime
Message
 
To
06/08/2003 14:55:27
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00817385
Message ID:
00817538
Views:
24
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....


>It should work. That code was tested under VFP7 and CR8.5. Note that there is a bug in CR9 that makes this so it doesn't work. I have yet to test with any hotfixes that Crystal Decisions has posted.
>
>
>>Sorry, left that out - VFP7. I've been trying to folow the events sample from your page to get this to work.
>>
>>>What version of VFP?
>>>
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform