Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Epson Printer - smartform linefeed

Former Member
0 Kudos

Hi,

I am having an issue with a receipt printer.

We have installed a new Epson printer, TM-H6000IV , We are using an existing smartform for the receipts.

What we noticed while printing is that the line feed is not recognized. It gets printed as 1 continuous line.

And also, even though we initialize the printer using a print control code in the beginning, it retains the data

from the previous print and prints that at the beginning of the current print job.

The first 3 characters of each line was cut off, but adding 3 new spaces seems to have fixed this problem.

But would be nice to have a better fix for this issue also.

I did try removing all the print control commands in case it was a standard and we did not need to add it

manually. But that did not help too.

The paper roll is 80 mm, and prints 42 characters in each line. The space tab seems to be working fine.

Only the line break seems to be a problem.

Any input is appreciated.

Thank you

Lalitha Sankaran

8 REPLIES 8

Juwin
Active Contributor
0 Kudos

Seems like your printer driver in SPAD is the problem. How is the printer defined in SAP? Can you provide screenshots of SPAD screens?

Thanks,

Juwin

Former Member
0 Kudos

Hi,

Thank you for responding, here is the SPAD config,

The device type, we copied the std device type EPESCP9 and added some custom print control codes to it.

Thanks

Lalitha

Juwin
Active Contributor
0 Kudos

I haven't personally worked with this printer. But, here are my observations:

The driver used in this printer is ESC/POS, whereas the device type says the driver name as ESC/P. That must be the reason why printer controls aren't working as expected.

Since you copied ESC/P, the print controls copied are that of ESC/P, which has Line feed (SLINE) character as 0D0A.

Epson manual says, for ESC/POS, the line feed character is 0A. (https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=10).

Hence, please update the device type to 0A, and give it a try. If that doesn't work, try with 0D (https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=13), which is the code for carriage return.

Thanks,

Juwin

Former Member
0 Kudos

Hi Juwin,

I will get more details on why we chose the device type EPESCP9. I did try with linefeed 0A,

but that did not make any difference in the output.

Also the printer initialize control code does not seem to actually clear the buffer. The code I tried is ESC @. We did try a self-test of the printer, which seemed to work fine.

Thanks for your input.

Thank you

Lalitha

Former Member
0 Kudos

HI Juwin,

I checked to see what all device types are available for the Epson printer , and the 3 available in SAP are EPESCP, EPESCP2 and EPESCP9. I got an error when I switched to the other 2. Only the current config that we have prints successfully . Any change in the print control codes doesn't seem to be making a difference. I also tried to reduce the font size in the smart form , but the font size in the printout seems to remain the same . Not sure why the control codes are not effecting the output .

thank you

lalitha

Former Member
0 Kudos

Hi Juwin,

SAP responded back that they support only device type EPESCP9 and EPESCP with ESC/P and EPESCP2 with ESC/P2.

They wanted us to contact Epson to get the device type compatible with our printer, but no luck with that. Any suggestions on how to get the device type compatible with ESC/POS ?

Thank you

Lalitha

Juwin
Active Contributor
0 Kudos

That's what I also said - It is the problem with the device type being used. Epson will have to provide a custom device type to be used for the printer.

When you print from Windows, anything typed in a notepad/ word, does it print correctly?

Thanks,

Juwin

0 Kudos

Hi Juwin,

Wanted to check further on this printer issue. On further discussion with Epson, we were told that the hybrid printer works as 2 separate printers. So when we need to print the receipt ,we need it to send it to the version of the printer that is configured with the "ReceiptE4" version of the print driver. And the endorsement part in the version that is configured with the "EndorseE4" version of the print driver. In our Cash desk Application we have been doing it as one output stream so far, which does not seem possible with the new Hybrid printer.

I am checking to see If we can modify the config to separate these 2. Right now the smartform is setp via config. The correspondence type used in 0043 (Mixed Payment). Wondering if there is a way to separate the receipt and endorsement part.

The config is done is SPRO ->IMG-> banking ->Loans Management ->Functions -> Correspondence -> Correspondence with Correspondence tool (smartforms) ->Correspondence tool ->Define Application forms for Correspondence Activity.

Appreciate any input.

Thank you

Lalitha