on 06-25-2007 8:40 AM
Hello,
I have a funny problem. Well, this is the first Adobe Print form development in my current project.
We have configured ADS and am able to create my Adobe form. I tried testing my form directly and it shows me my form in PRINT PREVIEW properly.
I tried creating the PRINT PROGRAM as shown below. For my suprise, I dont find the PRINT PREVIEW window itself. Niether the OUTPUT.Can anyone help me in correcting my mistake. I hope someone must have had this kind of similar problem before.
<i>* Get the Generated function module name
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_TEST_APPLICATION_FORM'
IMPORTING
e_funcname = l_funcname
E_INTERFACE_TYPE =
.
IF sy-subrc <> 0.
WRITE : 'Exit at FP_FUNCTION_MODULE_NAME'.
EXIT.
ENDIF.
Set the form processing attributes
l_outputparams-device = 'PRINTER'. "Set the output Device to PRINTER
l_outputparams-getpdf = 'X'. "Launch Print Preview
l_outputparams-preview = 'X'.
l_outputparams-immexit = 'X'.
l_outputparams-NODIALOG = ' '.
*l_outputparams-dest = 'LOCA'.
Start the form processing
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = l_outputparams
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5
.
IF sy-subrc <> 0.
WRITE : 'Exit at FP_JOB_OPEN'.
EXIT.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
l_docparams-LANGU = 'E'.
*l_docparams-fillable = 'X'.
Call our Deferment Application form
CALL FUNCTION l_funcname
EXPORTING
/1bcdwb/docparams = l_docparams
p9230 = p9230
ndgp = l_ndgp
ldate = l_ldate
lsubty = l_lsubty
stext = l_stext
nric = l_nric
ttext = l_ttext
rankname = l_rankname
ndgrant = l_ndgrant.
IF sy-subrc <> 0.
WRITE : 'Exit at l_funcname'.
EXIT.
endif.
Close the Form Processing.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
IF sy-subrc <> 0.
WRITE : 'Exit at FP_JOB_CLOSE'.
EXIT.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE : 'Sucessful'.</i>
Expecting a fast response. Thanks in advance.
Regards
<i><b>Raja Sekhar</b></i>
Hey Raja,
Remove -
<i>l_outputparams-device = 'PRINTER'. "Set the output Device to PRINTER
l_outputparams-getpdf = 'X'. "Launch Print Preview
l_outputparams-preview = 'X'.
l_outputparams-immexit = 'X'.
l_outputparams-NODIALOG = ' '.
*l_outputparams-dest = 'LOCA'.</i>
Especially the getpdf one.
Hope this helps.
Thanks and regards,
Anto.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
Its really nice to hear from you. getPDf is used for getting the pdf document to process in the code.
Say, i require to attach the PDF and send the form through mail. In that case, I flag this parameter and get the values in the result import parameter of the FM.
Hope this will give you some idea. You may refer Jeff Gebo's webinar or Vani krishnamoorthy's papers available in SDN, which illustrates, how you can attach a PDF and ssend the mail..
Hey, btw, i am posting a new thread regarding drop downs. Please reply to it [:D]
Regards,
Anto.
Hi Antony,
To add to the above question, Well, we had a requirement where the PDF should automatically get displayed without the option of INTERMEDIATE PRINT DIALOG BOX(With Print, Print Preview box and other options). So is there any parameter in this OUTPUTPARAMS which does this MAGIC.
Regards
<i><b>Raja Sekhar</b></i>
sorry. will update it
Hi Raj,
There seems to be some problem in my ADS. Your requirement is very much possible.
try out -
w_sfpoutputparams-device = 'PRINTER'.
w_sfpoutputparams-nodialog = 'X'.
w_sfpoutputparams-preview = 'X'.
w_sfpoutputparams-dest = '<output device>'.
Once its up and ifyou have issues, i will try it out from my end.
- anto
Message was edited by:
Antony John Isacc
Hello Raja,
I'm new to Adobe Interactive Forms, These days im working on Iteractive forms.
i need to add check boxes dynamically to the Form. Is it possible.
It would be grate if u have any test programs.
Thanks in advance,
Lahiru.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.