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: 

How to Bypass printing dialog while printing using ShellExecuteEx

Former Member
0 Kudos

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:

http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/52263b41-3f01-4bd5-adca-ad48bf6d1cf6...

Thanks if someone can help me,

Eliram.

1 REPLY 1

Former Member
0 Kudos

Any one can help ?

Eliram.