Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsPrinterDotMatric()
Message
 
 
To
03/06/2005 11:06:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019594
Message ID:
01019910
Views:
87
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform