02-19-2009 9:24 AM
I use the function:
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = strname
parameter = lv_param
default_directory = str_repath
synchronous = 'X'
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.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
But when i try to print BMP,JPG and etc. it opens up the .in Windows picture and fax viewer
and not print.
Below in the link there's a code how can i do this in abap ?
link:
Thanks if someone can help me,
Eliram.
02-19-2009 10:02 AM