i got sample code for crystal report, here is the part of it:
I am learning and put almost exactly the same code in my project:
But on the third line of my code, the "pdvRID.Value" seems having problem, VB.NET gives message "'Value' is not a member of 'System Array'". Why is that? it works fine in the sample code, whats wrong is it here? plz help
VB.NET:
' Objects used to set the parameters in the report
Dim pvCollection As New CrystalDecisions.Shared.ParameterValues()
Dim pdvCustomerName As New CrystalDecisions.Shared.ParameterDiscreteValue()
' Set the discreet value to the customers name.
pdvCustomerName.Value = cbCustomers.Text
' Add it to the parameter collection.
pvCollection.Add(pdvCustomerName)
' Apply the current parameter values.
rptCustomersOrders.DataDefinition.ParameterFields("@CustomerName").ApplyCurrentValues(pvCollection)
I am learning and put almost exactly the same code in my project:
VB.NET:
Dim CrystalReportCurResult As New CrystalReportCurResult
Dim pvCollection As New CrystalDecisions.Shared.ParameterValues
Dim pdvRID As CrystalDecisions.Shared.ParameterDiscreteValue()
pdvRID.Value = ModuleUser.curResultID
pvCollection.Add(pdvRID)
CrystalReportCurResult.DataDefinition.ParameterFields("@CustomerName").ApplyCurrentValues(pvCollection)
But on the third line of my code, the "pdvRID.Value" seems having problem, VB.NET gives message "'Value' is not a member of 'System Array'". Why is that? it works fine in the sample code, whats wrong is it here? plz help