on 07-28-2015 11:11 AM
Hi All,
i am having the issue with dot matrix printer with the continuous paper printing.
In the first page the printing coming properly as per the SAP script layout design but in 2nd page the position of the prining data is moved up 5 lines.
i am using "EPESCP (EPSON ESC/P 24/48-pin printer)" Device type for the printer. in the device type printer initialization we have the below mentioned commands.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# reset
\e\0x40
# select character table 3 -> PC 437 character set
\e\0x74\0x03
# set line spacing 6 LPI
\e\0x32
# set page length to DINA4 (=70 lines at 6 LPI)
\e\0x43\0x46
# cancel bottom margin
\e\0x4F
# set left margin to 0
\e\0x6C\0x00
# select LQ quality
\e\0x78\0x01
# select non-proportional spacing
\e\0x70\0x00
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Can you please check this and suggest me to avoid printing 5 lines up in the 2nd page if we do continuous printing with Dot matrix printer ?
Is there anything which i need to change in above printer initialization commands.
Please do the needful..
Thanks and regards
Krishna Mohan
Hello Krishna,
in the above printer initialization the following lines determine line arrangement on the paper:
# set line spacing 6 LPI
\e\0x32
# set page length to DINA4 (=70 lines at 6 LPI)
\e\0x43\0x46
As the second commented line shows, this is a page preparation for DINA4. If you are using a paper of different size, a different Format should be selected in R/3 for the printout (e.g. LETTER, INCH12, etc.).
Let's assume DINA4 paper will be used for this printing. In this case the mentioned printer initialization lines need to be changed in the following way:
The numbers "32" and "46" are hexadecimal values which will actually change the print output.
In your case, if I understand correctly (although math is not one of my strongest points...) you need to add additional 5 lines to a page, which means the following change:
# set line spacing 6 LPI
\e\0x32
# set page length to DINA4 (=70 lines at 6 LPI)
\e\0x43\0x4B
(As 4B is the hexadecimal value of 70 + 5 = 75.)
Chances are the lines will be a bit piled up, in thise case you can change the 0x32 value too.
If the printout is still strange, unfortunately a trial-and-error method needs to be followed, so you can get a printout which seems fine.
Please ensure that a new spool request will be created and printed for each change of the Printer Initialization.
Best regards,
Laszlo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.