on 09-01-2009 1:40 PM
I have build the logic to download my smartform as pdf format. but in doing this I have lost the print preview facility. please guide how to handle that. I need both the down load and print preview working for my form.
Hi Niti,
Search On SCN!.
[Smartform to PDF|https://forums.sdn.sap.com/search.jspa?threadID=&q=ConvertSmartforminto+PDF&objID=f231&dateRange=lastyear&numResults=30&rankBy=10001]
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niti,
The easiest way to do this is...just take two push buttons or check box's on ur selection screen or Screen,
one is for preview and another for download...on Preview_push_button u just execute "smart form function module" and avoid executing other FMs Like "CONVERT_OTF","file_save_dialog" "GUI_DOWNLOAD"etc.... but when u click on Download_Push_button u execute all FM's but just update control parameters of ur SAMRTFORM function module...ex
w_cparam-NO_DIALOG = 'X'.
CALL FUNCTION '/1BCDWB/SF00000395'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
so that it will not ask you the print and print preview dialogbox...directly asks you the save dialog box...i hope it will serve the purpose...tc
Edited by: mmmady on Sep 1, 2009 3:44 PM
Hi , Use theBelow options as per ur need ..... if u want DIALOG Pop -up then conpr-no_dialog = 'X'.For PDF
when 'PDF'.
clear: opopt.
clear conpr.
opopt-tddest = 'FEPR'.
opopt-tdimmed = 'X'.
opopt-tddelete = 'X'.
conpr-getotf = 'X'.
conpr-no_dialog = 'X'.
opopt-tdnoprev = 'X'.
conpr-no_dialog = 'X'.
when 'PRNT'.
opopt-tddest = 'FEPR'.
opopt-tdimmed = 'X'.
opopt-tddelete = 'X'.
Surya
Hi Niti,
Check whether you included these statements in your programm if yes remove thee statements so that you can get the print preview page also.
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box for print preview"
Hope this solves your problem,revert if you need some more help.
Have a great day ahead,
Pavan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi niti,
while you pass get_otf = 'X', you wont find print preview or print.
so what you need to do is:
call the smartform FM twice.
in one pass get_otf = 'X' and in another one do not pass these otf related things.
work is done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.