Suresh Babu

Suresh Babu

  • NA
  • 141
  • 19k

showing the text box value into the crystal report

Jul 13 2013 3:08 AM

 

i have doubt about how to show the text box value into the crystal report..

in my project i need to show the log in name in the crystal report..  i had created the parameters and assigned the discrete values but when am executing the application discrete value wizard will be appear on the screen.. please help me how to solve this problem and how to show the text box value  into the crystal report.. am added the following code

 paramField = new ParameterField(); // <-- This line is added

          paramDiscreteValue = new ParameterDiscreteValue();  // <-- This line is added

          paramField.Name = "uname";

          paramDiscreteValue.Value = uname;<-- this is loginname

          paramField.CurrentValues.Add(paramDiscreteValue);

          paramFields.Add(paramField);  


Answers (3)