Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Vilhelm-Ion Praisach
  Where is Vilhelm-Ion Praisach?
 Resita
 Romania
 Vilhelm-Ion Praisach
 To: bennet eze
  Where is bennet eze?
 LAGOS
 Nigeria
 bennet eze
 Tags
Subject: RE: pictures in reports
Thread ID: 395764 Message ID: 395892 # Views: 35 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Tuesday, January 21, 2014 6:21:14 AM         
   


> >
> >
> > No probs. I wondered if you were up late/early 8-)
>
> I put the pictures with APPEND MEMO so COPY MEMO should be able to reverse it. I have always thought that COPY MEMO will only produce text files as suggested by vfp documentation. I hope that a wrong file extension (say .bmp instead of .jpg) will not change the format of the resulting image file. I will experiment with that. Thank you all for you wonderful contributions. Thank you very much Vilhelm-Ion for your sample file. It reminded me of the need to CLEAR RESOURCES after the use of each image
>
> Bennet Eze

Since your picture already is in a memo field, check the file signature for the proper extension.
http://www.filesignatures.net/index.php?page=all&order=EXT&alpha=

DO CASE
CASE ASC(SUBSTR(pctr,1,1))=0x42 AND ASC(SUBSTR(pctr,2,1))=0x4D
	COPY MEMO pctr TO (SYS(2015)+'.bmp')
CASE ASC(SUBSTR(pctr,1,1))=0x47 AND ASC(SUBSTR(pctr,2,1))=0x49 AND ASC(SUBSTR(pctr,3,1))=0x46 AND ASC(SUBSTR(pctr,4,1))=0x38
	COPY MEMO pctr TO (SYS(2015)+'.gif')
*** to be continued
ENDCASE



My respects

ENTIRE THREAD

pictures in reports Posted by bennet eze @ 1/18/2014 4:45:09 PM
RE: pictures in reports Posted by Pete Sass @ 1/18/2014 6:02:41 PM
RE: pictures in reports Posted by bennet eze @ 1/18/2014 9:40:29 PM
RE: pictures in reports Posted by Pete Sass @ 1/18/2014 11:21:57 PM
RE: pictures in reports Posted by Jun Tangunan @ 1/19/2014 1:31:28 AM
RE: pictures in reports Posted by David Mustakim @ 1/19/2014 4:11:23 AM
RE: pictures in reports Posted by Paul Gibson @ 1/20/2014 10:50:11 AM
RE: pictures in reports Posted by bennet eze @ 1/20/2014 9:10:18 PM
RE: pictures in reports Posted by Tore Bleken @ 1/20/2014 9:52:36 PM
RE: pictures in reports Posted by Paul Gibson @ 1/20/2014 10:16:57 PM
RE: pictures in reports Posted by David Mustakim @ 1/20/2014 10:21:27 PM
RE: pictures in reports Posted by Paul Gibson @ 1/20/2014 10:27:16 PM
RE: pictures in reports Posted by David Mustakim @ 1/20/2014 10:36:56 PM
RE: pictures in reports Posted by Paul Gibson @ 1/20/2014 10:46:06 PM
RE: pictures in reports Posted by bennet eze @ 1/21/2014 12:58:56 AM
RE: pictures in reports Posted by Vilhelm-Ion Praisach @ 1/21/2014 6:21:14 AM
RE: pictures in reports Posted by David Mustakim @ 1/21/2014 8:25:06 AM
RE: pictures in reports Posted by Paul Gibson @ 1/20/2014 10:43:46 PM
RE: pictures in reports Posted by bennet eze @ 1/21/2014 7:56:17 AM
RE: pictures in reports Posted by Tore Bleken @ 1/21/2014 9:59:45 AM
RE: pictures in reports Posted by bennet eze @ 1/21/2014 3:11:14 PM
RE: pictures in reports Posted by Tore Bleken @ 1/21/2014 3:21:07 PM
RE: pictures in reports Posted by Vilhelm-Ion Praisach @ 1/20/2014 10:24:51 PM
RE: pictures in reports Posted by tom knauf @ 1/21/2014 5:04:36 PM