on 01-30-2009 3:50 AM
Hi expert.
I have a problem and need an advise to resolve.
I create smartforms with driver program, i use control parameter in driver program to specific copy = 1 and show preview page immediately . after execute,preview page shown output just 1 page.
first click at print, one copy receive and page preview still on screen. but in 2nd and 3rd click , i receive two copies and three copies in order.
what i can do to resolve this problem.
i use this code in driver program.
DATA:
control TYPE ssfctrlop,
control_parameters TYPE ssfctrlop,
output_options TYPE ssfcompop.
control-preview = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
OUTPUT_OPTIONS-TDDEST = 'PADM'.
OUTPUT_OPTIONS-TDNOPRINT = ' '.
OUTPUT_OPTIONS-TDIMMED = 'X'.
OUTPUT_OPTIONS-TDCOPIES = '1'.
call function lf_fm_name
exporting
output_options = output_options
control_parameters = control
user_settings = ' '
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
point for any useful advise.
regards.
kittisak.
Hi,
This is because when you click fprint first time the spool is genertated and printer recives the print command and you get the expected results.
Second time when you click again the print button again the new spool is generated and as same printer receives print command and prints the previous spool and present spool because of this you get the two prints and same for the Third time aslo.
Pass X to OUTPUT_OPTIONS-TDDELETE this shpuld work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.