>>Hi All -
>>Some years ago I found a handy little tool that allows you to print (create a BMP) of the active foxpro form. I don't remember where I found it but it has been very helpful in many places. The program is contained in a file (foxform.dll). Recently I have needed to rebuild my setup.exe file (using installsheild) and find that when I include foxform.dll it will not build. The error log shows:
>>. . .
>>Upgrade table successfully built
>>_Validation table successfully built
>>Searching project for extract-at-build components...
>>Extracting COM data from 1 component(s)
>>ISEXP : fatal error -6017: Internal build error
>>Express\SingleImage - 1 error(s), 0 warning(s)
>>
>>If I remove foxform.dll from the list of files to be distributed it will build OK. My copy of foxform.dll is dated 2/5/1999. Does anyone know if there is a newer version available somewhere or how to solve my build problem?
>>
>>Thanks
>
>You can use GDIPLUSX to create and store a BMP of a form.
Thanks Carlos. This sample seems to work OK for a full screen capture.
local loTmp, hwnd, lcSavefile, loCaptureBMP
lcSavefile = putfile("Save form as:","Filename.bmp","BMP")
if len(alltrim(lcSavefile)) > 2
do f:\foxpro\Classes\GDIPlusX_Source_v1.20\system.app
with _screen.system.Drawing
loCaptureBMP = .bitmap.FromScreen()
loCaptureBMP.save (lcSavefile, .Imaging.ImageFormat.Png)
endwith
endif
But how would you modify it to capture just the foxpro form?