Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding pictures to a database
Message
From
28/03/2008 05:02:45
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Germany
 
 
To
27/03/2008 16:30:23
Mark Phillips
Erw Custom Programming Inc.
Waterford, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01306319
Message ID:
01306383
Views:
10
I'm a primitivist. I recommend keeping your pictures in a directory. The path to the directory should be a system variable. In the report add a picture, set the control source type to "expression or variable name" and the control source to something like

m.pcCustomerPicturePath + Customers.pic_file

You can also skip the file name field altogether and use a key plus an extension.

m.pcArticlePicturePath + Articles.art_pk+"_thumb.gif"

Mind you, there is more than one way to skin a cat. I've avoided general fields because if the table becomes corrupted then you can have a real problem. I think they are better now though then when they first appeared in FoxPro.

Possible Problems: in some operating systems large numbers of files can be a problem.

>Need some help...
>
>Would like to know a simple way to add pictures to records in a database that can be printed on a report?
>
>Thank you for any help you can give me, Mark
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform