Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help, Saving Embedded Images to a File
Message
De
07/09/1997 03:40:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/09/1997 17:24:15
David Kappler
Control Systems International
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048597
Message ID:
00048866
Vues:
53
> While they are in one of my forms viewing the images they may hit a button > that will bring up a save as prompt. When they decide upon a filename then > hit save as, I call the code that you have provided. Unfortunately I have > not had any success at opening the .fpt file. After the file is saved > 'filename.fpt' I rename it to 'filename.bmp' but am not able to open it > with paintbrush, etc. > > I hope that this is enough background information for you. Oh, my > programming experience is as follows: > 2 years MS Access Database - single user application. > 1 year MS Visual Basic > 2 months VFP. > > Here again is the code snippet that I am using. > > SELECT citations > SET ORDER TO citation_n > CitationNumber = INT(VAL(CitationNumber)) > SEEK CitationNumber > COPY FIELD citation_images_signature NEXT 1 TO &Filename The .fpt file has several header bytes which probably prevent any bitmap proces sing app to recognize the format of the file. Try savename_lc=putfile("*.bmp") Copy memo citation_images_signature to (savename_lc) The first line is probably having syntax error (putfile has more parameters, AF AIK), anyway savename_lc is the filename of the .bmp file to create. This will work if you s tore the bitmap to a memo field using Append memo citation_images_signature from (bmpfilename_lc) If you're not sure if the memo field is empty, you may add OverWrite clause. No w, since it's a general type or something like that, the memo field may contain some extra head er, so in that case I'm not sure.

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