on 10-19-2007 5:32 PM
Hi everyone!
When my printing program calls the printer name for LOCL, since it's a network printer with a pretty large (and unchangeable) name, the program trims the last letters. Then I get an error stating that the printer is not recognizable by Windows Print Manager.
Anyone knows how to fix this?
Best Regards,
Luís Andrade
Hi
You can use the coding provided by Mr. Seshu Or else follow this procedure
Goto Tcode SPAD --> OutPut Devices
Select Your printer LOCL Click below <b>Location or message</b> this header and double click on that line and after that goto change mode. Click on Access Method and define your printer as" __default"
This will solve your problem
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use simple logic :
parameters: p_print like pri_params-pdest.
initialization.
Spool: Device Description (New Format)
select single padest from tsp03d into p_print
where paprosname = '__DEFAULT'.
<b> itcpo-tddest = p_print.</b>
itcpo-tdnewid = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tdimmed = 'X'.
itcpo-tdcopies = '1'.
call function 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = ' '
form = 'ZAUTO_REPLPRINT'
language = sy-langu
options = itcpo.
Thanks
Seshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.