2013 May 27 6:35 AM
Dear SDNers,
I have created a output device for my dot matrix printer to print payslip using tcode PC00_M99_CEDT.
I have created Z font type and assigned. But it is not taking the font which I am assigning and printing with small letter.
And Also my page format is with 65rows with 132 columns. But while printing it is printing on alternative pages.
Please guide me how to solve this issue.
Regards,
Venkat
2013 May 27 6:57 AM
Assign the font as default font in smartform or script which you are using.
Also check in SPAD for the printer settings.
Dear SDNers,
I have created a output device for my dot matrix printer to print payslip using tcode PC00_M99_CEDT.
I have created Z font type and assigned. But it is not taking the font which I am assigning and printing with small letter.
And Also my page format is with 65rows with 132 columns. But while printing it is printing on alternative pages.
Please guide me how to solve this issue.
Regards,
Venkat
2013 May 27 6:57 AM
Assign the font as default font in smartform or script which you are using.
Also check in SPAD for the printer settings.
2013 May 27 7:23 AM
Dear Sai Krishna,
I am using tocde "PC00_M99_CEDT"..Its a report which doesnt have either smartform or script.
It is standard tcode which display a payslip results using write statements.
I have checked all SPAD settings and ther are okay.
Regards,
Venkat..
2013 May 27 1:02 PM
2013 May 27 4:28 PM
Have you updated any code in printer initialization options in device (format) settings ?
2013 May 28 1:59 PM
No, I didnt do any code at Printer initialization.
Do I need to mention the font size n type over there?
2013 May 28 2:08 PM
2013 May 28 2:12 PM
I am using tocde "PC00_M99_CEDT"..Its a report which doesnt have either smartform or script.
It is standard tcode which display a payslip results using write statements.
I have checked all SPAD settings and they are okay.
2013 May 28 2:18 PM
I think you are using using dot matrix printer and it is printing in small fonts and not printing in your actual page format.
does what i assume is correct ?
2013 May 28 2:47 PM
Yes Narasimha..I am using Dot Matrix Printer and its not increasing the font size even though I maintained font formats
Please guide me how to increase the font size.
2013 May 28 2:51 PM
Are the fonts that you have installed supported by the printer? If the printer does not support there is no use. Please check with your printer manual.
2013 May 28 2:58 PM
Yes Varun,
I am using standard font HELVE. I opened word and gave few different fonts and gave print.. Those are printed on page...But from SAP, those fonts are not working..Is it smething related to configuration?
2013 May 28 3:24 PM
I think it might be issue related to the device type. Set correct device type valid for your printer make(Google search might help) on the printer settings in SPAD. It is more important to get the right device type for dot matrix printers.
If it is not device type it might be related to font conversion. You can check font conversion from SE73.
2013 May 28 2:58 PM
okay do one thing
develop a z program and use the function module 'GET_PAYSLIP'
in your program in order to get the data that you see in the output of
tcode "PC00_M40_CEDT".
and again use the function module 'CONVERT_PAYSLIP_TO_SAPSCRIPT'.
after generating the sapscript. after generating the sap script go to se38
and goto progrram 'SF_MIGRATE' and convert the sapscript to smartform.
2013 May 28 3:04 PM
after converting to smartform replace the font with which you require and if required create a new page style in spad t code and replace the current format in smartform with newly created page format
2013 May 28 4:25 PM
2013 May 28 4:30 PM
Have you tried the below code with changing the parameters in the code .
as far as my knowledge there is no other alternative.
2013 May 28 3:47 PM
copy the following code in printer initialization settings in spad tcode
# reset
\e\0x40
# select character table 3 -> PC 437 character set (change the below code acording to you reqment)
\e\0x74\0x03
# set line spacing 10 LPI
\e\0x2B\0x24
# set page length to (=84 lines at 10LPI) (change the below code according to you requirement)
\e\0x43\0x54
# 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
2013 May 29 6:59 AM
I tried with your code..but there is no change in font.
Same font it is giving..
2013 May 29 7:16 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |