Post by Isaac Joshua ChuaWhat is the normal number of lines per inches?
Issac,
I have done this long time ago, but the best way I found to handle printers
was to create a table of printers, featuring all the basic and less basic escape sequences for each printer brand/type, for instance:
init_bold,end_bold,
init_italic,end_italic,
init_large,end_large,
init_small,end_small,
init_normal,end_normal, etc...
one you decide which printer you are going to use, load the escape sequences for this printer and assign them to variables with same names, then in your report
PRINT init_bold clipped,"This is the title",end_bold clipped
PRINT normal_clipped, my print stuff
PRINT more stuff
etc...
I think (my memory may betray me) that each printer has an escape sequence to initialize page length, so you can use this trick to initialize it the the size you want.
In addition, edit the printed file with vi or any editor, and check where (i.e. at wich line number) the '^L' or skip page characters are printed.
Skip page character is controlled by the OUTPUT section/page length value.
If you set 84 as PAGE LENGTH and your printer prints pages of 80, this will not work correctly, one skip page will be done at 80 (printer page length), and the 84th line skip page will never be done.
No sure about this, butyou could give a try.
To see the behaviour off what I say, you can also try to define a smaller PAGE LENGTH/OUTPUT SECTION value (say 60), and see how it behaves.
IHTH
Eric