×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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!

*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

Page Break

Page Break

Page Break

(OP)
good afternooon all -
i've been looking around - but have not seen a control code for a page break in the hp pcl books.
basically what i have is file that will contain many pages that are of a dynamic page size.  i do know what the last item to be printed will be though (where i want the page break).  any ideas on a control code that i can send to the printer to tell is to start a new page?
thanks in advance.
regards,
longhair

RE: Page Break

The FormFeed character, which is hex "0C", decimal "12".

Thomas D. Greer
www.tgreer.com

RE: Page Break

(OP)
tgreer,
so i would just have to put / display decimal "27" (hp escape code) then decimal "12"?
regards,
longhair

RE: Page Break

Only decimal "12", the FF. No escape at all.

Jim Asman

RE: Page Break

(OP)
jlasman,
thanks for that.  i'm almost there.  i have the print job working correct for every other page ie page 1 has the form feed in the correct place page 2 does not page 3 is correct etc.  the only odd thing is that the incorrect pages are not printing the same amount of data.  that is the page break appears to be put in a random location.
any ideas?
regards,
longhair

RE: Page Break

(OP)
the strange thing is that the form feed appears to be moved up the page in increments of 8 lines.
regards,
longhair

RE: Page Break

What is probably happening is that your application is still sending data AFTER the FF has been sent.

Maybe thare are 8 LF's still to come from Page 1, after you issue the FF and they end up on Page 2.

But from your description, it sounds as though your FF may be coming too late.

The best thing to do is print to a file and examine the data and see if you can't tell what is going on. You might just have a logic problem when to issue the FF or perhaps you are getting data you didn't expect or not gettig data you did expect.

Jim Asman

RE: Page Break

(OP)
jlasman,
good suggestion a star for you.
the formfeeds / page breaks were in the proper location in the file, though.  i decided to attack the issue via the language that i'm programming in rather than the pcl.  it adds to the program size and a bit to it's runtime but it accomplishes the task.
again thanks for the time.
regards,
longhair

RE: Page Break

Then what may be at issue is the MAX lines per page as perceived by the printer vs. your application. This SHOULD be a trivial problem to resolve.

OR, related, maybe your app expects 6lpi and the printer is printing at 8lpi. It's something simple.

Jim Asman

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