Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A way to print a form Programatically ???
Message
From
07/05/1998 02:49:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/05/1998 19:04:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00097432
Message ID:
00097588
Views:
23
>>>Is there a easy way to print a form with all his controls and control values to printer ???. A way to issue 'print screen' key programatically ??.
>>
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.
>>Cetin
>
>Cetin,
>
>I used your (or G. Tasker's) ScreenCapture function and all went well but I'm not clear on the pasting to a general field. How is this done programatically?
>
>Thanks.
I didn't include my way for it was quirky and rely on the existence of some default sysmenu elements :
create cursor test (bmptest g)
append blank
keyboard "{Ctrl+pgdn}" 
keyboard "{Alt+E}"
keyboard "{P}"
keyboard "{Ctrl+W}"
keyboard "{Ctrl+W}"
browse nowait
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform