Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this Code?
Message
 
À
03/06/2005 09:52:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01019741
Message ID:
01019839
Vues:
21
>Does that driver support more than 200 colors?
>>I will post it, but I am not sure if it works well. As I said in original question for some LaserJet printers this function returns TRUE :o( (for HP LJ driver that comes with WindowsXP)


No, Colors = 2, bit the function DeviceCapabilities(lcPrinterName, lcPort, DC_TRUETYPE, 0, 0) returns DCTT_BITMAP, After I readed som posts I change the main IF to
IF BETWEEN(GetDeviceCaps(lnDC ,NUMCOLORS),0, 16) .AND.;
   DeviceCapabilities(lcPrinterName, lcPort, DC_TRUETYPE, 0x00, 0x00) == DCTT_BITMAP
...
because I learn that GetDeviceCaps(lnDC ,NUMCOLORS) returns -1 if the Device support more that 200 colors.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform