Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF -> read, show and print

Former Member
0 Kudos

I am needing to read an archive pdf and to soon print to follow. I tried to use the classroom to cl_gui_pdfviewer, however error at the moment is occurring to show the read archive. I tried to also use the program demon of sap SAP_PDF_VIEWER_DEMO, and it it presents problem the same. If somebody will have some tip or suggestion, I am thankful.

Alex

1 ACCEPTED SOLUTION

Former Member
0 Kudos

See the link's below:

3 REPLIES 3

Former Member
0 Kudos

See the link's below:

0 Kudos

Thanks for your help, but i already read sdn forum links and not help me.

If someone can help, thanks a lot.

0 Kudos

Hi

If you need to open and show a pdf file you can use the method EXECUTE of class CL_GUI_FRONTEND_SERVICES.

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = 'MY_FILE.pdf'

  • APPLICATION =

  • PARAMETER =

default_directory = path

  • MAXIMIZED =

  • MINIMIZED =

  • SYNCHRONOUS =

  • OPERATION = 'OPEN'

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

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Max