Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

print PDF document from shared drive on printer stored in sap table.

$
0
0

Hi,

 

I need to print the pdf document which is stored at some path say c:/path to a printer whose name is stored is SAP TAble say printer name.

Below is my code which is able to print the document on default printer of user but I need to pass the printer name and document should print on that printer not on default printer.Kindly suggest if you have any idea here.

 

Call method cl_gui_frontend_services=>execute

exporting

application = 'ACROD32.EXE'

parameter = '/p /h c:\path'

minimized = 'X'.

 

The above code works fine to print on default printer but I need to pass printer name here so that document printed on that printer.

Please suggest if I can use below code:

 

Call method cl_gui_frontend_services=>execute

exporting

document = 'ACROD32.EXE /t c:\path <printer name>'.

 

Please try code at ur systems first than only reply or if you are 100% sure.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>