Ver Mensaje Individual
  #2  
Viejo 08/06/10, 16:12:41
Mauricio Hidalgo Mauricio Hidalgo is offline
Senior Member
 
Fecha de Ingreso: may 2006
Localización: Santiago, Chile
Mensajes: 481
Lo más cercano que tengo, es una previsualización en linea del PDF y el usuario opta si lo imprime o no.

Te lo dejo igualmente por si te sirve.

call function 'FOPC_REPORT_SHOW_PDF'
exporting
it_otfdata = t_otf.


podrias copiar esa función y modificar

donde dice:
* show data
call method g_pdf_control->show_data
exporting
url = l_url
exceptions
others = 1.
if sy-subrc <> 0.
raise cntl_error.
endif.

que diga algo así como

call method g_pdf_control->EXECWB
exporting
CMD_ID = CL_GUI_HTML_VIEWER=>WB_CMDID_PRINT
exceptions
others = 1.
if sy-subrc <> 0.
raise cntl_error.
endif.

Úlima edición por Mauricio Hidalgo fecha: 08/06/10 a las 16:25:47.
Responder Con Cita