SPAN { font-family: "BatangChe"; font-size: 12pt; color: #000000; background: #FFFFFF; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } smartforms画好后打印都要预览后设置打印机,那么怎样可以自动打印跳过打印机设置呢,可以用一下代码。
DATA: ls_control TYPE ssfctrlop,
ls_out_option TYPE ssfcompop.
ls_control-preview = 'X'.
ls_control-no_dialog = 'X'.
ls_out_option-tddest = 'LP01'. "设置打印机的地方,这个事打印池
CALL FUNCTION l_fm_name
EXPORTING
g_name = l_name
g_department = l_department
g_date = l_date
p_printer = l_printer
control_parameters = ls_control
output_options = ls_out_option
user_settings = space
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
DATA: ls_control TYPE ssfctrlop,
ls_out_option TYPE ssfcompop.
ls_control-preview = 'X'.
ls_control-no_dialog = 'X'.
ls_out_option-tddest = 'LP01'. "设置打印机的地方,这个事打印池
CALL FUNCTION l_fm_name
EXPORTING
g_name = l_name
g_department = l_department
g_date = l_date
p_printer = l_printer
control_parameters = ls_control
output_options = ls_out_option
user_settings = space
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17204926/viewspace-613955/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/17204926/viewspace-613955/