04-05-2006 1:49 PM
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
04-05-2006 1:51 PM
04-05-2006 1:51 PM
04-05-2006 1:52 PM
Thanks for your help, but i already read sdn forum links and not help me.
If someone can help, thanks a lot.
04-05-2006 2:13 PM
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