Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateCompatibleBitMap and Win2000
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00596108
Message ID:
00596873
Views:
23
>>>Ed,
>>>This sounds like serious stuff. I think I will punt and go back to reading all the objects on the screen, putting them in a report and then printing the report. I have some problems with placement and grids but I think I will be able to solve those before I learn to read C++ code. Again Thanks.
>>
>>OK; to me, it's not a tremendous task to replace the SelectObject() and BitBlt() calls with calls to SetDIBitsTODevice(), but it is a hassle figuring out exactly what device capabilities are available, and possibly having to write your own conversions for RGBQUAD structures to greyscale, and the BITMAPINFO structure does require some redirection.
>>
>>Have you thought about copying the BitMap to a General field and just using MSPaint as an automation client to handle the conversion?
>
>Or how about using ShellExecute with the print verb?

Same thing, but now you need to write a valid BitMap header; you could use Obj2BMP for that, though...it sounds like there are a number of ways to skin this problem. Both solutions depend on having an OLE Server for the BMP extension with a PRINT verb.
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
Next
Reply
Map
View

Click here to load this message in the networking platform