| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | printersettings |
Excerpted from message dated 12-04-96, Jorgen De Gier to Henk den Adel:
HdA> How do I set the "Default Font Typeface" in plain C
HdA> code? (Borland BCC or
HdA> IBM's ICC)
JG>What about the dos way? Create some files containing the escape codes
>and simply copy them to the printer. Or open the printer as a file
>and fwrite them.
>Can't try it, my 80 kolum Star refuses to print the first 80 kolum (
>really :-)
Hi Henk--
I do it exactly Jorgen's way for some DOS programs that require
special setups, running in a VDM, and I suppose it would work for
"native" OS/2 programs. However, there is one drawback. In normal
operating mode, the printer is reset before every "job." So your
carefully set up "default" would be lost before the
"real" file came
along, which would then run at the printer-driver default. The solution
is to set the printer driver for the "IBMNULL" printer, so you have a
straight-though ASCII printer with no automatic reset. This may or may
not cause problems, depending on the application mix.
BTW, I write the little printer setup programs in 16-bit assembly
language and link them as DOS COM programs, running them in a VDM. I
find it easier than monkeying around with C or even PL/I.
--Murray
___
* MR/2 2.25 #120 * Never get carried away by a flood of logic
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 109/347 18 7 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.