>Very good
>
> But it seems a little dificult for me
>
> I want only chr ( ) to bold fonts
>
> Thanks
To enable bold:
?? PC_BOLDON
or
?? chr(27) + "E"
to disable bold:
?? PC_BOLDOFF
or
?? chr(27) + "F"
If you want to use the defined codes (PC_BOLDON), you have to:
Copy the codes to a file like PrinterCodes.h
#include PrinterCodes.h in your program or form
Use the codes as described.
If you use include files, it is convenient to have one main include file, that refers to all other include files. This allows you to add additional include files, without changing every program, form and class.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)