Crystal Report - ayuda en un error

 
Vista:

ayuda en un error

Publicado por frida (3 intervenciones) el 09/05/2006 20:12:51
hola tengo un error al abrir un reporte desde VB 6 en CR 8 el error es 20507 nombre de archivo no valido no he utilizado mucho crystal reports, ojala y alguien me puede ayudar por favor gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ayuda en un error

Publicado por manolo (239 intervenciones) el 10/05/2006 05:15:10
Pues el error parece bastante claro, que no encuentra el archivo que le dices, comprueba bien la ruta completa del mismo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:ayuda en un error

Publicado por frida (3 intervenciones) el 10/05/2006 18:06:48
si de hecho ya verifique la ruta y esta bien por eso es que no se que pasa, escribo aqui el codigo que uso

With CRRecibidas
.Reset
.ReportFileName = App.Path & "C:\REPORTES\REC.rpt"
.Connect = "DataSource=SItheth;location=DBSCoT;uid=STre;pwd=STrem;"
.WindowShowGroupTree = True
.WindowTitle = "Reporte de Pendientes Recibidas"
'.WindowAllowDrillDown = True
strFormula = "{precibidas.fecha_llamada} in date(" & Format(txtFromDate.Text, "YYYY,M,D") & ") To Date(" & Format(txtToDate.Text, "YYYY,M,D") & ")"
.ReplaceSelectionFormula (strFormula)
If optPreview Then .Destination = crptToWindow
If OptPrint Then .Destination = crptToPrinter
If OptPrint Then .PrinterSelect
.Action = 1
Exit Sub
End With
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:ayuda en un error

Publicado por frida (3 intervenciones) el 10/05/2006 18:07:35
si de hecho ya verifique la ruta y esta bien por eso es que no se que pasa, escribo aqui el codigo que uso

With CRRecibidas
.Reset
.ReportFileName = App.Path & "C:\REPORTES\REC.rpt"
.Connect = "DataSource=SItheth;location=DBSCoT;uid=STre;pwd=STrem;"
.WindowShowGroupTree = True
.WindowTitle = "Reporte de Pendientes Recibidas"
'.WindowAllowDrillDown = True
strFormula = "{prec.fecha_ll} in date(" & Format(txtFromDate.Text, "YYYY,M,D") & ") To Date(" & Format(txtToDate.Text, "YYYY,M,D") & ")"
.ReplaceSelectionFormula (strFormula)
If optPreview Then .Destination = crptToWindow
If OptPrint Then .Destination = crptToPrinter
If OptPrint Then .PrinterSelect
.Action = 1
Exit Sub
End With
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:ayuda en un error

Publicado por kedoz (1 intervención) el 30/09/2011 01:36:00
el error esta clarisimo!!

App.Path & "C:\REPORTES\REC.rpt"

deberia ser

"C:\REPORTES\REC.rpt"

ya que el app.path te entrega la ruta de tu aplicacion por ejemplo c:\sistema

y tu estas diciendole

"c:\sistemac:\REPORTES\REC.rpt"

se usa App.path cuando queremos poner la carpeta reportes dentro de donde esta el .exe

EJEMPLO
App.Path & "\REPORTES\REC.rpt"

seria c:\sistema\REPORTES\REC.rpt"

Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar