TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Steve Kraus`
date: 2003-01-25 07:02:46
subject: [TSEPro] Sending Control Codes to Printers

From: "Steve Kraus" 
@Date: Fri, 24 Jan 2003 15:32:47 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



It would be very nice to have a macro adopting the
functionality of PrintChar(), PrintBlock(), PrintFile(),
ClosePrinter(), and probably OpenPrinter()

In Tse 2.5, I wrote a function to query the printer
port LPT1 and show the status on the menu using
Int 17h function 2.

I have the HP PCL version 5 manual, and I've
written functions in Tse 3.0 to draw CD labels
(song title, author).  Later, I switched to Word.

As an amateur musician in a bluegrass 
band, I often print lyric pages with
chords at 66 lines per page (or 59, or 89) with
titles.  I've also written a macro to transpose
chords positioned above lyrics to different keys.
We just worked up Irving Berlin's "Let Have 
Another Cup of Coffee" last night, and
I moved the key from A to G (original key C).

I've never figured how to keep chords above
lyrics in WordPerfect or Word except in text 
files.  I don't know enough about the Windows 
printer drivers to give me the control that I need.  
So I use Tse to format, transpose, and print.  

I often switch font and paper sizes right in
the middle of a chord and lyrics file, with a
comment at the top to tell me what to select.

I have used the Dos command COPY (4Dos
actually) to copy files with embedded control
strings to the printer.  This is ugly and hard
to maintain.  So I don't do SaveAs() or
SaveBlock()

Thanks,
Steve

----- Original Message ----- 
From: "Eric Stork" 
To: 
Sent: Friday, January 24, 2003 9:00 AM
Subject: [TSEPro] Sending Control Codes to Printers


> Sending Printer Controls to Printers:
> 
> Steve Kraus said
>  >I keep around TsePro 3.0c because it can output HP Printer
>  >Control Language to my deskjet and Laserjet printers.
> 
> Sammy said:
>  >You know, I came pretty close to keeping both printing
>  >systems in 4.0, with the new one being the default, and the
>  >old one being hidden, but there if you just had to have it.
>  >I could probably work up a macro to do it for v4.  I wonder
>  >if many people need this ability?
> 
>  >Also note that you can "save as" to lpt1 or prn, and it
>  >print to the printer, using the DOS-style control codes, if
>  >there.  Of course this only works on printers with DOS
>  >support.
> 
> Sammy, a versatile macro (e.g., to send blocks as well as
> whole files) would be nice to have.  But on the basis of your earlier
> guidance to me, the below Key Assignment works well for me.
> 
>     SaveAs("LPT1",_overwrite_)   
//Send file to LPT1
> 
> Eric Stork
> --------------------------
>   Eric Stork, Arlington VA.
>     estork2{at}comcast.net
> --------------------------
> 
> 
> --
> TSEPro mailing list
> 
--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

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™.