Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: Using ESC c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 880 of 983
Post > Topic >>

Re: Using ESC commands/sequences for printing...

by "JJ" <jeffersonjj.nospam@[EMAIL PROTECTED] > Jul 27, 2007 at 10:14 PM

"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
 




 5 Posts in Topic:
Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-27 19:49:11 
Re: Using ESC commands/sequences for printing...
Julius Kavay <kavay@[E  2007-07-27 22:53:32 
Re: Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-27 22:14:42 
Re: Using ESC commands/sequences for printing...
"JJ" <jeffer  2007-07-30 11:19:01 
Re: Using ESC commands/sequences for printing...
Julius Kavay <kavay@[E  2007-07-30 19:11:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:11:36 CDT 2008.