With the print setup depicted in the attached screenshots,
- line numbers are not printed at all (although "Line Numbers" is checked in Options/Print, and
- the header is printed correctly only on the first page. On the second page, it is already messed up. From the third page, the header is not printed anymore
This can be seen already in the "Print Preview".
Attached are screenshots showing the Page Setup and the Print Preview (of page 2 and 3)