function ScreenCapture >>lparameters lActiveWin >>DECLARE keybd_event IN Win32API; >> SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo >>lnsnapshot = 44 >>return keybd_event(lnsnapshot, iif(lActiveWin,0,1), 0, 0)This would capture the screen to clipboard (thanks to G.Tasker). You could programmatically create a cursor with a gen field and paste this one. Then print via report or OLE automation.
create cursor test (bmptest g) append blank keyboard "{Ctrl+pgdn}" keyboard "{Alt+E}" keyboard "{P}" keyboard "{Ctrl+W}" keyboard "{Ctrl+W}" browse nowaitCetin