Question:
Dear All,
We are using a dot matrix printer to print a label. The label layout is continuous page one .
Label 1 label 2 Label 3 Label 4 Label 5 Label 6
There are 6 labels in a row and the form is continous.
So if the program has to print 12 labels then there will be 2 rows of label printed.
We’ve defined each row of label as one page and each label as one window. When we have data for 12 labels i.e. two pages, data for all the 6 labels are getting printed on the same page. The page doesn’t get advanced at the end of one page even after issuing a new page command or by using START_FORM & END_FORM.
We also tried to advance the page by putting in the printer code in ‘Printer Initialization’ and ‘End of Page’ action of the page format:
Printer initialization:
# set line spacing 6 LPI
\e\x7e\x03\x00\x01\x3c
# set page length to 0.5 inch (=3 lines at 6 LPI)
\e\x7e\x04\x00\x02\x01\x03
# select 10 CPI at about 10 points
\e\x7e\x02\x00\x01\x32
End of Page:
\r
\f
Though this helps in advancing the page, the print out is weird – the first row of labels is printed with 3 lines per inch and from the second row onwards, it is printed at 6 lines per inch.
Has any one worked on such requirement? If any one has any idea on this requirement, please let me know.
Thanks & Regards.
Answer:
Before anyone can comment on this they need to know what type of printer are you using - ie the make and printer language being used.
Each printer has it's own "language", although most now emulate either HP PCL or one of the Epson variants.
It looks to me as though your printer has some sort of intelligence and is keeping the same number of lines per page when you change the page size.
Have you tried reversing the sequence of commands. ie set the page length first, then the LPI and then the CPI ?
_________________
Regards
R
Abap KC
SFMDR
Answer:
Sorry missed to give this information. also some updates form yesterday.
We are using a dot matrix printer form IBM 5577 series.
The device type we are using is JPSAPWIN.
For this label printing we have used a new page format with dimensions as 312 mm width and 25 mm hieght.
This page format has been added to the device type.
In the end of page we have give the following escape sequences \n and \f. This solved the problem of all contents getting printed in one row.
However after printing one row the second row is printed after 10 rows. So we need to specify the page size in the printer initialization. However we are not able to find the suitable escape sequences for this.
Answer:
Does the printer have 'skip over perforation' functionality.
If so, turn that off in your escape sequences.
_________________
Regards
R
Abap KC
SFMDR