on 06-12-2007 8:25 AM
When i am converting the smart form into pdf format and attaching it in a mail, i am not able to get the print preview.
Hi Gaurav,
Before calling the function module for conversion to pdf, you need to declare in the following manner:
data: cparam type ssfctrlop,
out_op type ssfcompop.
now to enable the preview popup.
out_op-tddest = 'LP01'.
cparam-no_dialog = ' '.
cparam-preview = 'X'.
cparam-getotf = 'X'.
And perform the following operation:
calling the generated function module
call function fm_name
exporting
control_parameters = cparam
output_options = out_op
(......).
finally
call function 'CONVERT_OTF'.
*Reward Points.
Regards,
-Syed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
Did you tried placing a break point while debugging at
out_op-tddest = 'LP01'.
cparam-no_dialog = ' '.
cparam-preview = 'X'.
Under the debugging mode, try to check whether these parameters are getting passed to the function module "Call Function fm_name". Pls do activate the smartform, and also the driver program, everytime when you change the code.
Kindly lemme know what kind of message or information you r getting there.
Reward points if useful,
Regards,
-Syed.
Hi Syed,
I am writing my code plz tell wht's wrong with it.
************Parameters*************
g_params-no_dialog = 'X'.
g_params-preview = 'X'.
g_params-getotf = 'X'.
g_options-tddest = nast-tdreceiver.
g_options-tdnoprev = ' '.
**********Function Call**********
CALL FUNCTION lf_fm_name
EXPORTING
control_parameters = g_params
output_options = g_options
user_settings = 'X'
Importing
job_output_info = g_data
Now plz tell me where i am wrong.
Hi Gaurav,
Just make a correction:
***********Parameters*************
g_params-no_dialog = ' '. "You marked it 'X' to enable the suppressing of preview popup
g_params-preview = 'X'.
g_params-getotf = 'X'.
g_options-tddest = nast-tdreceiver.
g_options-tdnoprev = ' '.
If this does not work, then comment out "g_params-getotf = 'X'" and then check.
**********Function Call**********
CALL FUNCTION lf_fm_name
EXPORTING
control_parameters = g_params
output_options = g_options
user_settings = 'X'
Importing
job_output_info = g_data
And moreover, do not forget activating the program and the smartform.
Kindly let me know the result.
Regards,
-Syed.
hi
good
while tesing the smartform enter the printer as lp01 and click the print preview button.
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi gaurav,
just excute your smartforms<b> fm</b> to see the privew of smartforms.
regards,
seshu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.