I'm outputting sheet labels to an LJ4 printer, using the HP PCL escape sequences to control the printer. (Has to be accurate so the labels will come out right on the sheets).
When I just used the page length and page margin commands (chr(27)+"&l60P" and chr(27)+"&l5E)", it doesn't work right... either asks for Exec paper, or just runs off the bottom of the page onto the next page. I solved that by just using the page size command (chr(27)+"&l2A"), but then I can't control the top margin... it just stays where it is, which is off by a line.
Any hints? Can I not just tell the printer how many lines long my lables are and what top margin I want? (Apparently not).
I'm an amateur who's written my own program (20 years ago) for my own business, and am maintaining it, but not writing enough code to stay very current...
Frank
When I just used the page length and page margin commands (chr(27)+"&l60P" and chr(27)+"&l5E)", it doesn't work right... either asks for Exec paper, or just runs off the bottom of the page onto the next page. I solved that by just using the page size command (chr(27)+"&l2A"), but then I can't control the top margin... it just stays where it is, which is off by a line.
Any hints? Can I not just tell the printer how many lines long my lables are and what top margin I want? (Apparently not).
I'm an amateur who's written my own program (20 years ago) for my own business, and am maintaining it, but not writing enough code to stay very current...
Frank