Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print pictures
Message
De
08/09/2001 21:33:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/09/2001 21:27:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00553749
Message ID:
00554347
Vues:
15
>Hit Tim, thanks for your reply :)
>
>> Why don't you use a General field and save the picture or a reference
>> to the picture there. Put the General field on your report and it will print.
>
>I use memo field because (unfortunately) that's the only way i've been told to save the picture. Actually the picture comes from an activex control (check out my conversation with Vlad in 'ActiveX controls in VFP' started on 09/06/2001 01:14:03) and my main purpose is to print the pictures.
>If I want to append the something to general field i used to use:
> APPEND GENERAL mytable.picfield CLASS some_class
>
>What class should i use to append the picture coming from
> SAVEPICTURE(THISFORM.MyActiveX_Ctrl.MyActiveX_Method, "test.bmp") ?
>Or should i use another command instead of APPEND GENERAL ?

I've tried this, and it's just slow. You better copy the files out to temp001.bmp, temp002.bmp (if you got them as Append Memo ... from test.bmp), and store the full filenames into a memo. Do this in a cursor you'll destroy later. In the report, add the olecontrol, and for the filename use the name of the memo which holds the paths as the source of the picture. You may need to surround it by parentheses, or use trim() or some function, just to let the expression parser know it should evaluate it instead of searching the disk for it.
After running the report, delete the tempxxx.bmp. If you have the pictures on the disk already, it's even easier - just have a field which holds their full paths, and use that as filename source.

Just tried it, works.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform