Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture handling in Crystal Report
Message
From
15/10/2001 02:58:31
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00566505
Message ID:
00568429
Views:
29
Hi Randy,

First off all, you must use the RDC automation controler(Unlike I said before the CRPE automation controller does not support the format event). Then you must capture the format events of the section in which the OLE object is placed.
This can be done with the BINDEVENTS of VFPcomm.dll in VFP 6 and with the EventHandler() function in VFP 7.

When you've captured the format event of the section object you can change the picture of the OLEobject by using the formetted picture propery.

Like I said, I never tried it, but it seems that is should be possible. If you manage to make this work, please let us know.

Walter,

>When I was trying to figure out how to accomplish putting a picture in my report, I saw plenty of references to the method you describe, but I couldn't figure out where to access those events. All the examples avilable for download were, of course, VB code.
> Fox2x general fields? After all this time, how about NATIVE support for VFP DBC's? Considering it seems that MS is going away from ODBC... How many times can one send the same enhancement request to Crystal Decisions?
>
> Randy
>
>>Hi Willianto,
>>
>>Sadly there is no way to report pictures from general fields. You may find a workarround in Randy's idea. There is however another way which is complex to manage.
>>
>>In the format event (CR 7.0 or above) of the report (can be captured with VFPcom.dll in VFP6 or by VFP7 natively) of either the RDC or CRPE automation controller you can change the disk location of the picture trhough the formattedpicture property (See developer.hlp). Though according the docs, this must be possible I never tried it myself.
>>
>>In CR 8.5 there is another way, by reporting out of a database field (disk location, thus no embedded pictures). I agree this is a major PITA in CR. Pictures embedded in Access or SQL server table are supported, why FOX2X general fields are not is beyond me.
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform