Getting a Crystal Report Parameter value in VB.NET
After setting a parameter value of a crystal report there is no easy way of getting the value. So I found this to get the parameter value.
CType(CType (CType (CType (CType (CType (rpt.Parameter_paraArea, CrystalDecisions.Shared.IParameterField), CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition).CurrentValues, CrystalDecisions.Shared.ParameterValues).Item(0), CrystalDecisions.Shared.ParameterValue), CrystalDecisions.Shared.ParameterDiscreteValue).Value, Object)
rpt is the Crystal Report, paraArea is my parameter name which I needed to get the value of.
Hope this helps.
No comments:
Post a Comment