Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/03/2010, 17:36
antoniapj
 
Fecha de Ingreso: febrero-2010
Mensajes: 4
Antigüedad: 14 años, 2 meses
Puntos: 0
Forms 10g, enviar reporte a PDF

Hola,

Despues de tanto buscar y batallar, por fin he logrado ejecutar un reporte desde forms, el problema ahora es que despues de que se generar el archivo, me abre una ventana de dialogo, preguntado si deseo guardar el arhivo con nombre del jobid del reporte.

¿Como evito que aparezca esta ventana, o que estoy haciendo mal?
Aqui el codigo que utilizo:

BEGIN
v_report_id := FIND_REPORT_OBJECT(vc_reportname);

pl_id1 := Create_Parameter_List('tmpdata');
Add_Parameter( pl_id1, 'P_TAX_ID', TEXT_PARAMETER, '11');

SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM _MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESF ORMAT, vc_runformat);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESN AME, vc_namedest);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERV ER, vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHE R,'paramform=no');

vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id, pl_id1);

vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+ 2,length(vc_ReportServerJob));
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server='||vc_reportserver||'&destype=fi le'|| '&desformat='||vc_runformat||'&desname='||vc_named est,'_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
Destroy_Parameter_List(pl_id1);
END;