
26/06/2006, 16:01
|
| | Fecha de Ingreso: junio-2006
Mensajes: 61
Antigüedad: 18 años, 10 meses Puntos: 0 | |
Gracias, encontré esta información en un foro previo
/*
Colocalo antes de enviar los parametros...
_____________________________________
For itrI = 1 To Session("oRpt").Database.Tables.Count
Session("oRpt").Database.Tables.Item(itrI).SetLogO nInfo "MiServidor", "MiBD", "user", "pass"
Next
*/
----------------------------------------------
lo pongo en el AlwaysRequiredSteps.asp
'OPEN THE REPORT (but destroy any previous one first)
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if
On error resume next
For itrI = 1 To Session("oRpt").Database.Tables.Count
Session("oRpt").Database.Tables.Item(itrI).SetLogO nInfo "bdbaan", "bdbaan", "delfos", "delfos"
Next
Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1)
'This line uses the "PATH" and "reportname" variables to reference the Crystal
'Report file, and open it up for processing.
If Err.Number <> 0 Then
Response.Write "Error Occurred creating Report Object: " & Err.Description
Set Session("oRpt") = nothing
Set Session("oApp") = nothing
Session.Abandon
Response.End
End If
-------------------------------------------------------------
pero me sale Error Occurred creating Report Object: Bucle For no inicializado
Es correcto que lo ponga en el AlwaysRequiredSteps.asp ??? |