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