Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2007, 09:28
laulaurys
 
Fecha de Ingreso: junio-2005
Mensajes: 337
Antigüedad: 18 años, 11 meses
Puntos: 1
Fallo en llamada a crystal reports

Hola gente! estoy haciendo la siguiente llamada a crystal:

If Opt_pres = True Then
CR.ReportFileName = "p_pres.rpt"
CR.StoredProcParam(0) = "@pFec_pres_desde = " & fCSql(Format(DTP_pre_desde.Value), vbDate)
sSql = sSql & ",@pFec_pres_hasta = " & fCSql(Format(DTP_pre_hasta.Value), vbDate)
sSql = sSql & ",@pFec_cle_desde = " & fCSql(Format(DTP_cle_desde.Value), vbDate)
sSql = sSql & ",@pFec_cle_hasta = " & fCSql(Format
sSql = sSql & ",@pMovimientos = " & pMovimientos
CR.Action = 1
Pero cuando lo ejecuto me dice, error 2050 en tiempo de ejecucion,
Invalid file name, pero yo chequeo eo nombre y esta bien, si en cambio del nombre le pongo la ruta completa me dice:

error 20650 en tiempo de ejecucion:
error in file \\ntfs\itconsumo....
the specified value type is different to the current value type.

Y el cursor al depurar queda para en CR.Action=1, si lo paso por encima dice
CR.Action= <property is write-only>
que me esta faltando??
Espero ayuda, gracias!