Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue while printing PDF files

Hi All ,

I am trying to print PDF document with the help of the method cl_gui_frontend_services=>execute . Below is the code for the same ,

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = gv_fname

  • APPLICATION =

  • PARAMETER =

  • DEFAULT_DIRECTORY =

  • MAXIMIZED =

  • MINIMIZED =

  • SYNCHRONOUS =

operation = 'PRINT'

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

bad_parameter = 3

file_not_found = 4

path_not_found = 5

file_extension_unknown = 6

error_execute_failed = 7

synchronous_failed = 8

not_supported_by_gui = 9

OTHERS = 10.

Gv_fname contains the path of the file to be printed . The file is present on the desktop.

Using the above method I am able to print the PDF document but it opens up a blank Acrobat reader while printing . I am looking for a solution to avoid opening of blank Acrobat reader while printing the PDF document .

Please let me know if there is any other way to print PDF files .

Any information leading to a solution for this problem would be highly appreciated.

Thanks in advance .

Tags:
Not what you were looking for? View more on this topic or Ask a question