Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing JPEGS on reports - how??? - VFP6
Message
 
À
13/11/1999 11:31:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00290870
Message ID:
00290975
Vues:
24
>>>Can VFP6 show JPEGs on a report? I know that I can show bitmaps, via a general field...
>>
>>Yes, just use the OLE Picture/ActiveX bound control on the report toolbar. It supports JPEG format.
>
>But the picture file will have to be imbedded in the table, not just pointed to with a path.
>
>Michael, I think this is your best bet still. You can create a temorary cursor before running the report, append in the contents of the link to each record in the new cursor. If you are trying to print every badge at once, and the picture files are significantly sized, this will take a while...
>
>Create a report with whatever emplyee information, and drop the ActiveX container control on it from the report controls toolbar, and select field for source. And just put the name of the field in your temprary cursor.
><br>>USE MyEmployeeFile<br>>CREATE CURSOR TmpBadges (EmpName C(6), EmpPicture G)<br>>SELE MyEmployeeFile<br>>SCAN<br>> SELE tmpBadges<br>> APPEND BLANK<br>> REPLACE EmpName WITH MyEmployeeFile.EmpName<br>> APPEND GENERAL EmpPicture FROM (MyEmployeeFile.PicturePath)<br>>ENDSCAN<br>><br>>REPORT FORM Badges<br>>

Well, I hate to disagree, but you can show jpegs also in VFP 6. I have a table with a field photo. That field is character, but could be a memo field. There I store the relative path to the photo and in the picture/activex bound control on the report (in the box marked file) I put the field name. You also want to make sure you check the properties of the control to retain the shape. Another note of caution is that you will need to deal with showing a blank or something if there isn't a picture. That would probably be handled with an iif(len(allt(photo))>3,photo,'c:\nophoto.jpg')

John Harvey
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform