Mail Archives: djgpp/1999/09/21/18:21:17
From: | Weiqi Gao <weiqigao AT a DOT crl DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Can DJGPP print diffrent font size ?
|
Date: | Tue, 21 Sep 1999 07:27:29 -0500
|
Organization: | CRL Network Services
|
Lines: | 29
|
Message-ID: | <37E779B1.6BFCD82A@a.crl.com>
|
References: | <7s6sc1$h93$1 AT nnrp1 DOT deja DOT com>
|
NNTP-Posting-Host: | a116026.stl1.as.crl.com
|
Mime-Version: | 1.0
|
X-Mailer: | Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
hank_heng AT hotmail DOT com wrote:
>
> Hi,
>
> I have this problem : I know that you can send a prin job over to
> the printer by open and then write to the printer, but what I really
> don't know is how do you change the size of the character printed,
> nor do I know how do make the printing goes horizontally instead of
> vertically, or printing a picture, or lines(not using ASCII
> character).
>
> So... is there any way to do that? Or do I need to download some
> library for DJGPP in order to have a full control over the printer
> from my program ? If so, where could I get the library ?
DOS simply writes to the printer port (a parallel port, most likely).
What you output to that port controls the printer. Different brands of
printers understands different control commands.
So your best bet is to find the manual of your printer, and figure out
what command will invoke the functionality that you are looking for.
For example, my Panasonic KX-P2123 manual if full of BASIC programs that
allows the printer do different kind of things (changing fonts, point
sizes, orientation, and printing graphics).
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -