¿Cómo obtengo los parametros enviados desde el ASP
Publicado por Rocío (10 intervenciones) el 05/04/2001 03:53:58
Quiero obtener los parametros enviados desde Asp al Crystal Report 7.0 Professional, para poder hacer el filtrado según esos parametros seleccionados desde la web.
He leído que utilizando PROMPT# , pero no sé cómo es eso. ¿Alguién me puede ayudar?.
He tratado de hacer de 2 maneras:
1)
reportname = "ventas_barras.rpt"
URLline = "http://localhost/Reportes_G/"&reportname&"?user0=operador&password0=op&prompt0=" & parametro1&"&prompt1="¶metro2&"&prompt2="¶metro3&"&prompt3="¶metro4
response.redirect (URLline)
Este me pide de todas formas el password y la clave
2) Como el ejemplo del Crystal
Pero tengo error al abrir el reporte.
' CREATE THE APPLICATION OBJECT
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("Crystal.CRPE.Application")
End If
Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if
Set session("oRpt") =
He leído que utilizando PROMPT# , pero no sé cómo es eso. ¿Alguién me puede ayudar?.
He tratado de hacer de 2 maneras:
1)
reportname = "ventas_barras.rpt"
URLline = "http://localhost/Reportes_G/"&reportname&"?user0=operador&password0=op&prompt0=" & parametro1&"&prompt1="¶metro2&"&prompt2="¶metro3&"&prompt3="¶metro4
response.redirect (URLline)
Este me pide de todas formas el password y la clave
2) Como el ejemplo del Crystal
Pero tengo error al abrir el reporte.
' CREATE THE APPLICATION OBJECT
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("Crystal.CRPE.Application")
End If
Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if
Set session("oRpt") =
Valora esta pregunta


0