Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving picture and using Crystal Reports
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00688256
Message ID:
00688409
Views:
38
I have a directory, REPORTTEMP, that I copy everything to. My VFP code selects the desired data record and writes files of Foxpro 2.x type into that directory. On of the fields in the VFP table I am generating the report from contains the path and filename to a picture. I copy the actual picture file into the REPORTTEMP directory and rename it to report.bmp. (The actual image files are JPGs, but I also convert it with the vfpimage.fll library downlaoded from here). The end result is a Fox 2.x table containing the record I want to report on, plus a file named report.bmp. In my CR RPT file, I do an Insert OLE Object and place the bmp file. I provide a default image which actually contains the text "Image not available" which gets copied in the event that there is no original picture associated with the desired record, or the copy operation fails for some reason. Changing the contents of that bmp file changes what shows on the report, but this method is not suitable for multi page reports with multiple records and multiple pictures. My 'report' that uses this is about 10 pages long, and reports only 1 parent record plus has about 6 subreports to display the associated child records from 6 child tables. The picture is a field in the parent, so there is only ever one picture per report.

>Randy
>
>even your single-picture solution is suit for me, but couldn't succeed in it, as tested days ago. Please describe it in details to me.
>
>thanks
>Hooman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform