CLR: .Net / Mono / Boo / Otros CLR > ASP .NET

 Problemas Con Parametros En Un Reporte

(1/1)

kesquive:
hola...

Hace dias estoy tratando de presentar en pantalla un reporte que recibe como parametro un string ....

Hice un procedimiento almacenado, el cual recibe un numero de cotizacion tipo string, este hace un select y me devuelve el detalle con varias lineas....esto lo realizo con un datagrid y si me presenta la consulta pero cuando lo quiero presentar en un reporte con crystal report me aparece el siguiente mensaje:
"Missing parameter field current value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Missing parameter field current value."

No se que mas hacer..... les agradeceria un monton si me pueden ayudar!!!

Gracias...mi correo es kattia.esquivel@mclogistica.com

Ctapia:
con esto logran pasar parametros al crystal reports, ya sea en VB o asp

Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldDefinition As ParameterFieldDefinition

Dim crParameterValues As New ParameterValues
Dim crParameterDiscreteValue As New ParameterDiscreteValue

crParameterDiscreteValue.Value = [Valor]
crParameterFieldDefinitions = rpt.DataDefinition.ParameterFields
crParameterFieldDefinition = crParameterFieldDefinitions.Item("[nombre parametro]")

crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)

crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)

Navegación

[0] Índice de Mensajes

Ir a la versión completa