Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Epson FX800 - Bold
Message
De
03/08/2001 07:33:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00539294
Message ID:
00539297
Vues:
7
>I am using in a Epson FX800
>
> ???
>
>
> @0,0 say CHR (15)
>
> **** I get condensed fonts
>
> @0,0 say CHR (18)
>
> I get back to current font
>
>
>1- How can I print bold ?

Moisés, you should check your printer manual. It should include codes for all important printer codes. However, I will include a series of #DEFINES at the end of this message, which you can use.

>
>2- How can I get back to current font?

See the #DEFINE statements. I included a #DEFINE to reset all; you may want to add some additional codes here, depending on what you need. For instance, since I sometimes use bold and sometimes italic, "reset all" will turn off both. If you turn bold on, later in the report you should turn only bold off.

>
>3- Is it possible to print condensed + bold ?

Yes.


Note: PC stands for "printer codes". This is part of my naming convention.

The commands should work with most Epson dot-matrix printers; but some differences do exist between different models.
	#define PC_ESC chr(27)
	#define PC_UNIDIR PC_ESC + "U"
		* unidirectional printing, to improve quality on old printers. User must add chr(1) (on) or chr(0) (off).
	#define PC_PAGELENGTH PC_ESC + "C"
		* page length. Actual length has to be added, like this: PC_PAGELENGTH + chr(66) (for 66 lines)

	* condensed on and off
	#define PC_CONDENSED	chr(15)
	#define PC_NONCONDENSED	chr(18)

	* character-per-inch settings
	#define PC_10CPI	PC_ESC + "P" + PC_NONCONDENSED
	#define PC_12CPI	PC_ESC + "M" + PC_NONCONDENSED
	#define PC_15CPI	PC_ESC + "g" + PC_NONCONDENSED
	* #define PC_12CPI	PC_17CPI
	* #define PC_15CPI	PC_17CPI
	#define PC_17CPI	PC_ESC + "P" + PC_CONDENSED

	* draft or NLQ
	#define PC_NLQ		PC_ESC + "x" + chr(1)
	#define PC_DRAFT	PC_ESC + "x" + chr(0)

	* line spacing
	#define PC_SPACINGNORMAL	PC_ESC + "2"
	#define PC_SPACING88		PC_ESC + "0"

	* Special effects
	#define PC_BOLDON			PC_ESC + "E"
	#define PC_BOLDOFF			PC_ESC + "F"
	#define PC_ITALICON			PC_ESC + "4"
	#define PC_ITALICOFF		PC_ESC + "5"
	#define PC_DOUBLEWIDEON		PC_ESC + "W" + chr(1)
	#define PC_DOUBLEWIDEOFF	PC_ESC + "W" + chr(0)
	#define PC_DOUBLEHIGHTON	PC_ESC + "w" + chr(1)
	#define PC_DOUBLEHIGHTOFF	PC_ESC + "w" + chr(0)

	* reset to a certain standard
	#define PC_RESET	PC_PAGELENGTH + chr(66) + PC_10CPI + PC_DRAFT + PC_SPACINGNORMAL + PC_BOLDOFF + PC_ITALICOFF + PC_DOUBLEHIGHTOFF

	* Half page
	#DEFINE PC_HALFPAGE				PC_PAGELENGTH + chr(33)
	* standard options; "wide" and "narrow" here refer to the page width.
	#define PC_WIDE132FAST			PC_RESET
	#define PC_NARROW132FAST		PC_RESET + PC_17CPI
	#define PC_WIDE132FAST88LINES	PC_RESET + PC_SPACING88 + PC_PAGELENGTH + chr(88)
	#define PC_NARROW132FAST88LINES	PC_RESET + PC_17CPI + PC_SPACING88 + PC_PAGELENGTH + chr(88)
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform