Ver Mensaje Individual
  #2  
Viejo 09/12/08, 14:09:44
Avatar de crounly
crounly crounly is offline
Senior Member
 
Fecha de Ingreso: nov 2006
Localización: Zaragoza, Espaņa
Mensajes: 227
Como estas generando el formulario???

Si lo haces como OTF y luego lo generas a PDF igual tienes un error

yo utilizo este codigo :

- Salida del smartforms a otf y luego a PDF

w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.

call function v_form_name
exporting
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
importing
job_output_info = w_return
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 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.

i_otf[] = w_return-otfdata[].

call function 'CONVERT_OTF'
exporting
format = 'PDF'
max_linewidth = 132
importing
bin_filesize = v_len_in
tables
otf = i_otf
lines = i_tline
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.

loop at i_tline.
translate i_tline using '~'.
concatenate wa_buffer i_tline into wa_buffer.
endloop.

translate wa_buffer using '~'.

do.

i_record = wa_buffer.
append i_record.
shift wa_buffer left by 255 places.
if wa_buffer is initial.
exit.
endif.

enddo.
Responder Con Cita