ESC-Codes are very printer specific. Depending on your printer model, it may
or may not understand those codes. That's why you see that garbage on the
first printout.
will get you lots of other headaches. Not only is it soo.. so retro ;), it is
just cumbersome. And designing your labels is not VISUAL. The easiest way is
it.
technologies. Why would you want to loose all that functionality? Just
hardware) was a lot simpler. (Sorry Beverly! ;) ) It doessn't really fit to
todays possibilities. (Just for starters: Try to find the ESC sequence
(?.??. (?.?` *
Post by Beverly Howardbusted... I started by grabbing code for a single label then tried to
mod it as a tutorial...
good catch.
nope... correctly issued codes will not result in any printer output.
note that they are not followed by a crlf
??? CHR(27) + "C" + CHR(18)
In this example;
Esc "C" followed by value of 18 lines ...note, the "value" is the ascii
character value, _not_ a "number" (CHR(18) actually sends a single byte
containing the binary value "18")
There are also multiple commands to set line spacing down to increments
of 1/216"
Check the label specs... the perf interval may be different than the
label itself... the perf interval interval is what you want to set, for
example, 15/16" labels have a 1" interval ...the 1/16" gives me pause.
However, the label/pin/printer dimensions are extremely accurate... the
standard is 6 lines/inch and would bet that the interval is a multiple
of 1/6" Once set, you should be able to print thousands of labels with
no adjustment.
If you are going to get into this, get a good Epson reference and put it
in a safe place.
http://lprng.sourceforge.net/DISTRIB/RESOURCES/PPD/epson.htm
in addition, go the extra mile and "over document" any code that uses
these codes... reason, tends to be years between needs to open the code
such as changing the label length.
Also, put the printer manual in a safe place... I normally tell the
client that I will be the keeper of the manual and to order a second one
for onsite if needed... pdf manuals have made this a bit easier.
There are many escape codes... my 1983 RX-80 had 54 commands, for
example bold and unbold, character size, etc, etc. ...very useful on
labels... for example, printing reference codes upper right in tiny
print in addition to address information.
hth,
Beverly Howard
Post by Beverly HowardI have to differ on several points... and that includes a number of
times where I have been called in to fix setups that used those "Windows
printer environment" setups.
model, it may or may not understand those codes. That's why you see that
garbage on the first printout. <<
The Epson codes are very standardized for dot matrix printers. Even the
Okidata as well as many other oems either use or offer "Epson Emulation"
Newer models may have additional codes such a NLQ but all Epsons use the
same base commands.
environment will get you lots of other headaches. Not only is it soo..
so retro ;) , it is just cumbersome. And designing your labels is not
VISUAL. The easiest way is always to work with a tool (or environemnt)
the way the inventors decided it. <<
There are significant penalties to using the "VISUAL" environment...
while it can be pretty neat to use an obscure font or print a logo on a
mailing label, the print speed difference using native dot matrix output
over bitmap printing is huge and can add up to hours saved on a single
large job.
invisible technologies. Why would you want to loose all that
functionality? <<
Printing to a Dot Matrix printer is normally grunt level work, and those
who actually have to work and live with dot matrix printers in the same
room tend to appreciate short, quiet print jobs. If appearance is
important, then, I agree, it is time for VISUAL approach and that
includes using something other than a dot matrix printer ;-)
Thanks...
Beverly Howard
Post by Bill LeavyHi Woody -
I am actually trying both your method and Bev's method and I will pick
from the two, I am doing both for the education <grin>. I started off
with your method, but ran into a hangup assigning the paper size to my
specific printer. I actually left you a message about it over in the
printing forum tied in to the thread over there that you recommended.
Some of the things that you say were the reason I was hesitant to
write directly to the printer, but Beverly's code is fairly
straightforward, and if I cannot get things working through the Windows
printing system, at least it provides an alternative.
Please take a look at my message to you in the other forum. Maybe you
can help me get over the hump I ran into,
Thanks for all your help.
-- Bill
Post by Bill LeavyHi Beverly -
So can I assume that this is due to the fact that I am using a
LaserJet, and that they will not appear on the user's printer?
I did allow for the perf intervals, I am going from the top of one
label to the top of the next.
Unfortunately I do not have the labels here, they are at the clients
site. I asked them to measure and they told me 2 and 15/16 with 1/8
between labels.
I will set it up to the nearest 1/6 measurement and see how we do.
Thanks again.
-- Bill
Post by Kevin ClarkI use a VCX called RawPrint for sending text directly to the printer.
It works pretty well. You can find it on UniversalThread. Just
search for RawPrint.
Kevin Clark
LaserJet, and that they will not appear on the user's printer? <<
Yes... the HP codes are completely unrelated to Epson's, so the HP
assumes that Epson codes should be printed.
Can you get someone at the client's office to give you the "Avery
Number" which most labels have even if they are not "Avery" if not that,
what is printed on the package. Post here, and if it is not a multiple of
1/6" will suggest a couple of other commands to set the line spacing.
Beverly Howard
Post by Bill LeavyHi Beverly -
I already asked about the Avery numbers, but apparently they are not
Avery labels. In any case, I have got it working over there with 3 inch
spacing, and it does not seem to be creeping up or down. Also, escape
codes are not printing on their Epson, so it looks like we are ok.
Thanks again for the help.
-- Bill
Post by Beverly Howardcongrats!
Beverly Howard
Post by unknownRead printer manual and select page back properly
Or paper size, or top margin or bottom margin
Submitted via EggHeadCafe
Creating Google Motion Charts from Excel data
http://www.eggheadcafe.com/tutorials/aspnet/86599bca-edda-4204-af15-7a1cf901a071/creating-google-motion-charts-from-excel-data.aspx