Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Epson lines per inch setting
Message
From
06/05/2003 18:24:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/05/2003 17:18:58
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00785602
Message ID:
00785616
Views:
9
>Can somebody tell me, how to set the lines per inch to 6, 8, 10....in a Epson FX-1180 PRINTER???.

Here are some of my printer constants, which should work for most EPSON printers. The relevant lines, in this case, are the definitions PC_SPACINGNORMAL (for 6 lines per inch, or 66 lines per page) and PC_SPACING88 (for 88 lines per standard page). I think there are a few additional settings; check your printer manual.
	#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
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform