anyone who knows how to pass a parameter value in the subreport... i launch the report in VB.net using reportdocument object.
below is my code in lauching the report with name RptNAme with a parameter ParamName...
my problem is in this report there is a subreport say SubRptName with a parameter SubParamName... everytime i launch the report it asks for values of the subreport...
pls help me...
crReportDocument.Load(strReportPath + RptName)
crReportDocumentSub=crReportDocument.OpenSubreport(SubRptNme)
crParameterFieldDefinitions = crReportDocument.DataDefinition.ParameterFields
crParameterFieldDefinition = crParameterFieldDefinitions.Item(ParamName)
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterDiscreteValue = New ParameterDiscreteValue
crParameterDiscreteValue.Value = ParamValue
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
CRV.ReportSource = crReportDocument
below is my code in lauching the report with name RptNAme with a parameter ParamName...
my problem is in this report there is a subreport say SubRptName with a parameter SubParamName... everytime i launch the report it asks for values of the subreport...
pls help me...
crReportDocument.Load(strReportPath + RptName)
crReportDocumentSub=crReportDocument.OpenSubreport(SubRptNme)
crParameterFieldDefinitions = crReportDocument.DataDefinition.ParameterFields
crParameterFieldDefinition = crParameterFieldDefinitions.Item(ParamName)
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterDiscreteValue = New ParameterDiscreteValue
crParameterDiscreteValue.Value = ParamValue
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
CRV.ReportSource = crReportDocument