cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript - Line spacing problem.

Former Member
0 Likes
3,313

Hello,

I have a problem with a Sapscript.

Due that I need to print new lines using a paper with pre-printing texts, I should move the texts milimeters to display the position in a right way.

However I have a problem that I can't solved...

I have changed the line spacing in SapScript (it would be less than 1,00 LN, I'm using MM, but although I set 0,50 MM, the line spacing is the same.... it is not change...) and nothing has changed.

I have also added printer code in SPAD transaction, in the edition information (Print initialization) and it didn't work...

Could anybody help me? I'll really appreciate it.

Thanks in advance and best regards,

Ignacio R. Guida

View Entire Topic
hedvig_rohonyi
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ignacio and Yican,

which device type is used for the printer EPSON LQ2190. I suppose the customer uses  printer driver STN2 (EPESCP,...). For the device types of a line printer(driver STN2), the SAP system must use spaces and empty lines to place the text. This is a limitation of the ESC/P printer language.(see Note 19807)

Do you have this problem, when you use device type SAPWIN?

Best Regards,

Hedvig

Former Member
0 Likes

HI,Rohonyi,

Thank you for your kindly advice.

I will check with customer if the driver is STN2, and if it is you said that must use spaces and empty lines to place the text, do you mean that I should use the format order ' / ' to add a empty line in the text elements eidt? if yes about the height of empty line ,does it decised from the basic setting in the HEAD "LINES/INCH" ?

Could you inform me the detai? Thank you .

hedvig_rohonyi
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Yican,

as note describes 'Non-integral line spacing is not supported', when you use line printer (e.g.EPESCP). In the form should only use a line spacing 1, 2, ... because there is no commands to place text on a page and the text is placed with spaces and empty lines.
To calculate, how many empty lines must be put between two text lines, the system needs to know, which is the height of a line. It takes the fixed value, that a line has a height of 1/6 inch. This is the basic LPI (Line per inch) setting in the form. I suppose the best solution assign device type SAPWIN to output device via SPAD.

Best regards,

Hedvig

Former Member
0 Likes

Hi,Hedvig,

I think you are correct, because right now if I set a paragraph  formate between the two variable, such as below:

whatever howmuch I set to PI line spacing( now is 2.3MM), even I change the various of unit for PI (mm,cm,IN,PT,TW),and when priting it always the same height between the two variable( about 4mm-5mm---it is too large for me ,actually I want the space is 2.5mm), I think maybe is just mactch you mentioned 1/6inch(1inch = 25.4mm).

But I have a confusion that because LPI in basic settings is  6,pls check below screen shot:

As per the calculation base the LPI setting is 6IN, that if a line eq 1/6 LPI, if it just eq 1IN for a line actually?

In practice I want to make the space between two variable eq 2.5mm,and now the minimum distance is 4-5mm as I said,  how should I do?

Florian
SAP Champion
SAP Champion
0 Likes

Hi Yican,

what kind of device type you are using right now? As Hedvig mentioned before, this should be checked first and perhaps changing this one will solve your issue.

~Florian

Private_Member_7726
Active Contributor
0 Likes

Hi,

Please understand one thing: no amount of fiddling in the Form will change anything if the SAP device type used for printing sets the line spacing to 6 LPI... Which is what, for example, the device types  EPESCP and EPESCP2 for line printers do for Page Format LEGAL (and actually all Page Formats):

Now, EPSON LQ2190 specification says: Line Spacings 1/6" or programmable by 1/360" are supported. You'll have to program the non 1/6" LPI in the SAP device type, however - probably via custom Page Format or something. What you will do in Form will merely adjust the SAP print preview to the physical output controlled by device type...

You can continue the fruitless experimentation in the Form, or you can find out an answer to a very basic question already asked 5 days ago: what SAP device type is used for printing?

cheers

Jānis