Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateCompatibleBitMap and Win2000
Message
From
20/12/2001 14:29:30
 
 
To
20/12/2001 13:56:31
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00596108
Message ID:
00596928
Views:
23
>Ed,
>What I'm thinking at this point is why is it so easy to print a screen in Delphi or in Access and so hard to do it in VFP.

Because you're making it hard; rather than coding API calls, I'd drop an ActiveX Control on the form or Desktop, pass it an hWnd and an hDC for the target printer, and let it do all the work. The control would end up being 50-100 lines of VB, Delphi or C++ that someone else wrote. Why invent the wheel?

>Seems to me this should be a function in the product. Maybe I should put it on the wish list. I like to use the API for quick and dirty stuff. If I have to figure out structures and the like, I can generally think of some other way to do it in VFP or convince myself I really didn't need to do this anyway.

Again, why should it be native? Learn from the VB crowd and when you need some functionality that isn't there, buy it, drop a widget on a form and add the functionality you need. I'd assumed you had a reason to do this that I didn't understand - all I saw was "I have this piece of code I creebed that I don't understand and doesn't work like I want it to", and I tried to explain why it didn't work as you thought it might and how to fix it...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform