genesis1923
Programmer
I am printing to a networked (NT) LaserJet 4100N from Unix and cannot get the page length changed from 60 lines. The file being printed is a text file with 66 physical lines per page (no form feeds).
I am embedding the PCL commands into the beginning of the file as a continuous stream, i.e. no line feeds. The PCL commands that I am using are:
Esc(1E (Reset)
Esc&l26A (Paper size A4)
Esc&l0O (Portrait)
Esc&l7.6C (VMI)
Esc&k11H (HMI)
Esc&l2E (Top margin of 2 lines)
Esc&l66F (Text lines per page)
Esc&a0R (Vertical position to line 0)
Result is 60 lines of text printed rather than 66. Line 61 prints as first line of next page.
Line 1 prints 11mm from top of page.
Line 60 prints 249mm from top of page leaving a 48mm bottom margin.
I originally used the Esc&l70P (70 lines per page) in place of the paper size command without success. Older HP printers on the same network work perfectly using the same PCL codes.
If I change the VMI to a smaller value, the lines become compressed and the bottom margin gets bigger but the number of lines printed stays the same.
It seems as if the only command being ignored is the text length.
The printer is unfortunately on a customer site more than 200 miles away so it makes testing a little difficult. Any help would be much appreciated.
I am embedding the PCL commands into the beginning of the file as a continuous stream, i.e. no line feeds. The PCL commands that I am using are:
Esc(1E (Reset)
Esc&l26A (Paper size A4)
Esc&l0O (Portrait)
Esc&l7.6C (VMI)
Esc&k11H (HMI)
Esc&l2E (Top margin of 2 lines)
Esc&l66F (Text lines per page)
Esc&a0R (Vertical position to line 0)
Result is 60 lines of text printed rather than 66. Line 61 prints as first line of next page.
Line 1 prints 11mm from top of page.
Line 60 prints 249mm from top of page leaving a 48mm bottom margin.
I originally used the Esc&l70P (70 lines per page) in place of the paper size command without success. Older HP printers on the same network work perfectly using the same PCL codes.
If I change the VMI to a smaller value, the lines become compressed and the bottom margin gets bigger but the number of lines printed stays the same.
It seems as if the only command being ignored is the text length.
The printer is unfortunately on a customer site more than 200 miles away so it makes testing a little difficult. Any help would be much appreciated.