Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND GENERAL question
Message
From
12/09/2007 11:26:56
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01253901
Message ID:
01253945
Views:
22
Okay. I got it to work without changing the code but tweaked the server as follows:
1. Made sure the MS Paint was installed on the server.  
This is part of the Windows install in Accessories->MS Paint.  
You can verify if MS Paint is installed by typing at 
the DOS Prompt: mspaint.exe

2. Verify that the default program for a .bmp is MS Paint.  
Open the registry editor using RegEdit.  Go to the following 
registry entry and make sure that the value of this key 
is as follows:
  HKLM\SOFTWARE\Classes\.bmp
  (Default)   REG_SZ    Paint.Picture
Hope this helps anyone having this problem.

>It's one of the reasons why you shouldn't store images in the General field. The better way is to use blob field (VFP9) or store full file name in the table and keep images on disk.
>
>>
>>I have this code snippet:
>>
>>local cFile
>>cFile = getfile('BMP')
>>if !empty(cFile) and file(cFile)
>>   select eboihd
>>   append general bmp1 from (cFile)
>>endif
>>
>>
>>This works in my VFP8SP1 interactive mode and the compiled exe on my computer. However, the same exe will not work in another PC. The append general inserts the thumbnail with the filename instead. And the report which uses this bitmap printouts the thumbnail with the filename rather than the actual bitmap. Any ideas?
>>
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform