You are on page 1of 1

*****retrieve del open dw_1.retrieve(string(today(),"dd/mm/yyyy")) ****del buscar date date2 date2 = relativedate(dp_2.datevalue,1) dw_1.setfilter("fecha>= date('"+string(dp_1.

datevalue,"mm/dd/yyyy") +"') and fec ha<=date('"+string(date2,"mm/dd/yyyy") +"')") dw_1.filter( ) **** setiar fecha dw_1.Setitem(dw_1.getrow(),"fecha",datetime(today(),time(00:00:00))) ***pdf1 dw_reporte.Object.DataWindow.Export.PDF.Method = Distill! dw_reporte.Object.DataWindow.Printer = "PDFCreator" //la impresora pdf dw_reporte.Object.DataWindow.Export.PDF.Distill.CustomPostscript = 1 dw_reporte.Modify("datawindow.Export.PDF.xslfop.print=yes") con solo exportar o guardar (saveas()) como pdf dw_reporte.Modify("DataWindow.Export.PDF.Method = XSLFOP! ") String ls_path_file ls_path_file = GetCurrentDirectory( )+"\"+nombre_archvio.pdf" if dw_reporte.saveas(ls_path_file,PDF!,True) = -1 then MessageBox("Error","Error") end if ***pdf2 //CONVIERTE Y GUARDA EL DW A PDF string ls_archivo integer li_ret ls_archivo = 'nc'+string(ll_doc)+'.pdf' dw_print.Object.DataWindow.Export.PDF.Method = XSLFOP! dw_print.Object.DataWindo w.Export.PDF.xslfop.Print="no" li_ret = dw_print.SaveAs('\\server\c$\Pegasus 2001\NC\'+ls_archivo,PDF!,true)

You might also like