parametros
hola amigos !!! tengo un problema como puedo enviar
parametros desde un formulario en visual basic 6.0 a crystal reports 8.0 para que se ejecute dicho reporte
si tienen la sintaxis les agradeceria mucho por que no puedo ejecutar dicho reporte desde visual basic
de antemano muchas gracias por su ayuda.
parametros desde un formulario en visual basic 6.0 a crystal reports 8.0 para que se ejecute dicho reporte
si tienen la sintaxis les agradeceria mucho por que no puedo ejecutar dicho reporte desde visual basic
de antemano muchas gracias por su ayuda.
hola
este codigo te servira para pasar parametros y formulas
report2.ReportFileName = App.Path & "facturacion.rpt"
report2.StoredProcParam(0) = Format(txt_fdesde.Text, "dd/mm/yyyy")
report2.StoredProcParam(1) = Format(txt_fhasta.Text, "dd/mm/yyyy")
report2.StoredProcParam(2) = vgint_temisor
report2.Formulas(1) = "fec_desde = '" & txt_fdesde.Text & "' "
report2.Formulas(2) = "fec_hasta = '" & txt_fhasta.Text & "' "
report2.Formulas(3) = "asegurador = '" & cbo_compseg.Text & "' "
report2.Formulas(4) = "corredor = '" & cbo_corredora.Text & "' "
report2.WindowWidth = 681
report2.WindowHeight = 506
report2.WindowLeft = 120
report2.WindowTop = 64
report2.Destination = crptToWindow
report2.PrintReport
este codigo te servira para pasar parametros y formulas
report2.ReportFileName = App.Path & "facturacion.rpt"
report2.StoredProcParam(0) = Format(txt_fdesde.Text, "dd/mm/yyyy")
report2.StoredProcParam(1) = Format(txt_fhasta.Text, "dd/mm/yyyy")
report2.StoredProcParam(2) = vgint_temisor
report2.Formulas(1) = "fec_desde = '" & txt_fdesde.Text & "' "
report2.Formulas(2) = "fec_hasta = '" & txt_fhasta.Text & "' "
report2.Formulas(3) = "asegurador = '" & cbo_compseg.Text & "' "
report2.Formulas(4) = "corredor = '" & cbo_corredora.Text & "' "
report2.WindowWidth = 681
report2.WindowHeight = 506
report2.WindowLeft = 120
report2.WindowTop = 64
report2.Destination = crptToWindow
report2.PrintReport
