Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this Code?
Message
 
To
03/06/2005 09:52:40
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019741
Message ID:
01019839
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform