×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Rotating text 90 degrees on Laser Output

Rotating text 90 degrees on Laser Output

Rotating text 90 degrees on Laser Output

(OP)
Hello All:

I am wondering if RM/COBOL has the ability to rotate text 90 degrees before printing it to a laser form.

We are implementing new bills which are on a legal piece of paper with some text facing the normal direction and other text that faces the other way.

Any help on this matter would be greatly appreciated.  Thanks.

RE: Rotating text 90 degrees on Laser Output

That doesn't sound like anything specific to any flavor of Cobol.

That sounds like it's going to require you include special escape sequences in your print output to tell the printer the placement, orientation and/or font for parts of your print output.

You are going to have to identify and learn the control language (PCL, etc.) for your specific printer.

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas

RE: Rotating text 90 degrees on Laser Output

(OP)
Thanks very much for your input on this matter.  I will have to do some more research on the control language when I return to work from the weekend.

RE: Rotating text 90 degrees on Laser Output

I used SQR language (used to be owned by Brio or MITI) to do such rotational text printing, check printing, signatures, logos, bar coding etc. It's been awhile but most important is an in-depth knowledge of the PCL control language which you
can buy or download from HP.  

RE: Rotating text 90 degrees on Laser Output

(OP)
Thanks to everyone for all your help.  I am going to have to brush up on my PCL control language.  Thankfully while I was analyzing some other programs that my predecessor wrote on the system, I found one that incorporates the PCL control language in COBOL.

I appreciate the responses, they were most helpful.

RE: Rotating text 90 degrees on Laser Output

If this is on Windows, you can use the P$SetFont call to set the escapement parameter to 900 (90.0 degrees).  See the RM/COBOL User's Guide for more information.  The watermark example could be helpful.

Tom Morrison

RE: Rotating text 90 degrees on Laser Output

Tom,

will the P$SetFont function allow you to interleave different blocks of text in perpendicular directions on the same page?  Or does that cause the entire page image to be rotated?

Quote (cvandijk):


with some text facing the normal direction and other text that faces the other way

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas

RE: Rotating text 90 degrees on Laser Output

David,

You can change the font with P$SetFont as you see fit, whenever you wish.  IIRC the watermark example cited above mixes fonts including different escapement values.

Tom Morrison

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close