Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateCompatibleBitMap and Win2000
Message
 
To
19/12/2001 09:26:00
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:
00596124
Views:
29
>I recently copied a proc from an internet site (www.news2news.com/vfp) that allowed printing of VFP screens. This proc was different than others I had seen in the past because it allowed printing of a screen on a dot matrix printer without the screen background color and in a legible format. It worked great on Win98, however when I do this proc from a Win2000/WinXP machine the print quality if much lower ( even when printer resolution is all the way up) and the printer emulates the screen background by printing dots. The result is awful. I believe the difference is in the way the systems handle the WinFunction CreateCompatibleBitMap. Is there any other function I can use? Or, does someone know of a screen printing routine that works on all WinVersions with Dot Matrix printers. Thanks.

AFAIK, the only difference between the Win9x/Me version of the function and the MT/2K/XP versions is that the latter can handle bitmaps greater than 16Mb. It sounds to me that difference isn't in CreateCompatibleBitmap(), but rather in the method used to retrieve the device context for the dot matrix prnter. This is purely a SWAG, however.

If you're conversant in VB, you maybe want to look at MSKB#Q161299.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform