"Julius Kavay" <kavay@[EMAIL PROTECTED]
> wrote in message
news:5gv4anF3dnd59U1@[EMAIL PROTECTED]
Julius,
> JJ wrote:
>
>> Just checking to see what input I get on this. I have to use some ESC
>> commands/seq's for incremental line feeding to an OKI printer.
>>
>> I know the ESC command I need to use is basically: "ESC J n" where n =
0
>> to 255...But not sure how to pass this via MUMPS to the printer, the
>> syntax. I
>
> the "ESC J n" is a "Epson mode Escape sequence" and if I recall it
right,
> it does an n/216 inch line feed.
Yup...
> To make a half inch linefeed, for example, just do the following:
>
> Set FEED=108 ; 216/2 = 108
> Set CR=13 ; CarrigeReturn
> Write "this is the top row",$c(27,74,FEED,CR),"and this is the bottom
> row",!
This is a HUGEhelp! Thanks.
> But take care, if you do
> Write "...",*27,*74,*FEED,*CR,"..." or
> Write "...",*27,*74,$c(FEED),$c(CR),"..."
> they do the same thing on the printer,
> the first one (...,$c(27,74,feed,cr),... ) DO NOT increments $X, but the
> others
> (*27,*74,...) do increment $X! So if you use the tab format control
(?nn)
> then
> it can happen, you are on the wrong position.
I was reading about this in my MUMPS book. But I thought it was the other
way around? At any rate, I'll keep this in mind and make sure my tabs are
working as expected. I'll have to...it won't fit the form if it's not.
> hth and
> have a nice day
> julius
Thanks so much...This has been a real help and was just what I was looking
for. I'll get to working with this soon - I'm interested to see what I
can
do now. Much appreciated! JJ


|