Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 09, 2013 at 08:40 AM

    closing the thread...problem solved by myself..

    for solution refer blogs under my name.. 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28, 2016 at 09:14 PM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.