Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxing saved reports
Message
From
28/05/1998 20:44:07
 
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00102174
Message ID:
00102950
Views:
23
Kia,
Unfortunately, I am using FPW26 so I can't use binary memo fields. I looked into the Winfax SDK and found I could use that but I would also need VFP. Another dead end. There has to be a way to save a graphic file in FPW26 so I can combine it with other files to print it at a later time...

Please let me know if you can brainstorm anything!
Sally



>Sally;
>I tried this code with a Memo (Binary) field and it seems to work fine. Although this is a rough draft just to give you an idea, but you need to add in verifications and all that good stuff to it.
>
>*- the structure for TABLE1.DBF is  C(15), M(4) {make sure it's a Bianary Memo field}
>SET DEFAULT TO "C:\1\1"
>
>LOCAL lhFile, lcFile, lnFileSize, lcData
>CLOSE DATA
>USE table1 IN 0 EXCLUSIVE
>lcFile = "picture.zip"
>
>lhFile = FOPEN(lcFile, 0)
>
>*- Get the file size
>lnFileSize=FSEEK(lhFile,0,2)
>=FSEEK(lhFile,0,0)
>
>*- Read in the data ...  if files are too large need to read in chunks to
>*- control memory usage.
>lcData = FREAD(lhFile, lnFileSize)
>
>WAIT WINDOW STR(lhFile) + "  File size =" + STR(lnFileSize)
>
>INSERT INTO Table1 (CName, Mmemo) ;
>			VALUES (lcFile, lcData)
>
>*- And close the file.
>=FCLOSE(lhFile)
>
>
>
>>Kia,
>>
>>How would I get the file into a general field? I created the file but the append general command gives me an error creating OLE object so I assume I need a class on the line but don't know what to use. Suggestions?
>>
>>Thanks again,
>>
>>Sally
>>
>>
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform