Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateCompatibleBitMap and Win2000
Message
 
À
20/12/2001 18:06:54
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00596108
Message ID:
00597242
Vues:
14
>George,
>I really appreciate your pursuit of this issue. However, I'm not sure if you understand what I am really after. Will what you suggest give me a black and white only rendition of the bitmap that shows only labels, buttons, grids, data entry fields and , the screen header? If that is the final result I am more than willing to pursue it. However, like you, I cannot affort at this point to spend a lot of time doing this.

Calvin,

Glad to help, so don't mention it.

Actually, the more I've thought about this, the more I'm coming to the conclusion that I've been looking at the problem through "the wrong end of the telescope". By that, I mean that the root cause of the problem may not be how the image is captured and sent to the printer, but rather how the printer itself is interpreting the information it gets.

To understand the problem, you must be aware of how Win32 actually interfaces with the printer. If you're already familiar with this, please forgive my going over it.

Beginning at least with the 32 bit versions of Windows, information sent to the printer is always (except in the case of a Generic/Text Only dot matrix driver) sent to the printer as a graphic. Actually, this sort thing began with the WYSIWYG programs in DOS that appeared shortly before Win 3.x. The Windows printer driver (winspool.drv) hands the information off to the OEM supplied printer driver for for interpretation and rendering.

The key here is how the OEM supplied driver interprets the information it's given. If it doesn't do so correctly, you end up with junk. Dot matrix printers are essentially character based, rather than graphics based. If the appropriate driver isn't chosen or one doesn't exist, you don't get what you should.

So, in short, you should make sure that the appropriate drivers are installed. In going over the list available in Win2K, I noted several dot matrix printers in it, like an IBM 24 pin. The answer to your problem may actually lie in finding the correct driver that's capable of properly rending the image that's sent in grayscale.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform