Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsPrinterDotMatric()
Message
 
 
À
03/06/2005 11:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01019594
Message ID:
01019910
Vues:
88
>OK, based on your delphi code i came up with the following, which works just fine so far. gonna have to see over time if there are any printers which would be identified wrongly. The following code is build in my Printer class, so you have to change anything accessing/setting properties/etc in there<snip>

Wouldn't it be simpler to write this piece of code as below?
* *** number of colors is smaler or equal then 16
* *** and the printer prints true type fonts as graphics
* *** its a dot-metrix printer
THIS.PrinterIsDotMatrix = ((m.nNumberColor <= 16) AND (m.PrintTTFAsGraphic = DCTT_BITMAP))

*IF ;
*		m.nNumberColor <= 16 .AND. ;
*		m.PrintTTFAsGraphic = DCTT_BITMAP
*	THIS.PrinterIsDotMatrix = .T.
*ELSE
*	THIS.PrinterIsDotMatrix = .F.
*ENDIF
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform