Ver Mensaje Individual
  #17 (permalink)  
Antiguo 10/05/2007, 15:48
Avatar de Korku
Korku
 
Fecha de Ingreso: noviembre-2003
Ubicación: En un lugar oscuro...
Mensajes: 688
Antigüedad: 20 años, 5 meses
Puntos: 5
Re: Crystal Report 9 ó 10? en Visual Basic 6.0!

Aquí tienes un ejemplo de código para Crystal Reports 8:

Código:
 
            dataLibroVentas.DataFiles(0) = App.path & "\prueba.mdb"
            dataLibroVentas.ReportFileName = App.path & "\LibroVentas.rpt"
            dataLibroVentas.SelectionFormula = "{VENTAS.FECHA} >=" & "#" & DTPicker1.Year & "/" & DTPicker1.Month & "/" & DTPicker1.Day & "# AND {VENTAS.FECHA}<=" & "#" & DTPicker2.Year & "/" & DTPicker2.Month & "/" & DTPicker2.Day & "#"
            dataLibroVentas.SortFields(0) = "+{VENTAS.IDFACTURA}"
            dataLibroVentas.PrintReport
__________________
Carpe diem quam minimum credula postero.


http://www.programador-freelance.es