Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/03/2007, 04:51
lotusxxl
 
Fecha de Ingreso: junio-2002
Mensajes: 243
Antigüedad: 21 años, 10 meses
Puntos: 1
Re: Subreport Crystal Reports XI

Bàsicamente el còdigo que se encarga de enlazar el report es el siguiente:

Código:
Dim crxApplication As New CRAXDRT.Application
Dim crxReport As CRAXDRT.Report

Set crxReport = crxApplication.OpenReport(App.Path & "\report.rpt")

crViewer.ReportSource = crxReport

crViewer.ViewReport
crViewer.Zoom 100
Screen.MousePointer = vbDefault
Lo que passa es que si no le indicas el datasource ni usas discardsaveddata el reporte será estático, osease que por mucho q actualices la bd y llames al reporte no canviaran los datos a no ser q te vayas al crytsal y vuelvas a hacer un preview y guardes el report.