Download George Tasker's Obj2Bmp class from UniversalThread.com.
It allows you to create bitmap files from objects.
Example:
oBMP=CreateObject('BmpMaker')
oBMP.cFileName='C:\MyBmp.bmp'
oBMP.MakeBitmap(hWnd,4)
To print the bitmap,
DECLARE INTEGER ShellExecute IN SHELL32 INTEGER hwnd, STRING cOP, STRING cFile,;
STRING cParams, STRING cStartDir, INTEGER nShowCmd
DECLARE INTEGER GetDesktopWindow IN User32
lnWhnd = GetDesktopWindow()
lnResult = ShellExecute(lnWhnd, 'PRINT', 'C:\MyBmp.bmp', '', '', 0)
Now, this is straight off the top of my head, so take it for its worth. Jon Hawkins
jonscott8@yahoo.com
The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed