on 04-28-2009 6:16 AM
Hi All
Can any one tel how to print pdf file through smartform .
while executing the prog it goes to printer
Hi!
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
* MAX_LINEWIDTH = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
* PDF_DELETE_OTFTAB = ' '
* IMPORTING
* BIN_FILESIZE =
* BIN_FILE =
TABLES
otf = i_otf
lines = i_pdf
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Try this ....it converts form to PDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
once u get the OTFDATA, just pass the OTF table data to the below FM..then u ill get the Output in PDF..
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
i_otf = otf_data1[]
EXCEPTIONS
acrobat_not_registered = 1
convert_otf_to_pdf_error = 2
download_error = 3
acrobat_not_started = 4
cntl_error = 5
OTHERS = 6.
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try with FM : CONVERT_OTF_2_PDF. for this search there are many posts in SDN
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 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.