I just want to display the name of the user who logged in the VB.NET (version 2002) application onto my crystal report(v 9).ie How can I pass the loginID from the Login Form so as to be displayed onto the crystal report???
Thanks
Printable View
I just want to display the name of the user who logged in the VB.NET (version 2002) application onto my crystal report(v 9).ie How can I pass the loginID from the Login Form so as to be displayed onto the crystal report???
Thanks
VB Code:
Dim paramFields As New ParameterFields Dim paramField As New ParameterField Dim discreteVal As New ParameterDiscreteValue paramField.ParameterFieldName = "userID" discreteVal.Value = userID paramField.CurrentValues.Add(discreteVal) paramFields.Add(paramField) <Your CR View Object>.ParameterFieldInfo = paramFields
Make a forumula field in ur report and pass the value to that report from ur form, simply read msdn for this.
you find many good examples.