Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Should be easy.... but I am stumpted 1

Status
Not open for further replies.

sclark415

Programmer
Mar 17, 2003
42
US
This should be easy, but I am stumpted. I am on V9, enterprise 9. I am creating a parameter. I entered the table and field the parameter data is to come from, but I don't know how to get the data into the 'Select or Default Values' so I can use them in the parameter when I run the report. In the Value and Description box, I have "Value and Description, with no sort order. The field type is a string, and I am using Discrete Values(s). When I check 'Allow multiple values , it doesn't seem to make any difference. Can you help me please?
 

ParameterField1.CurrentValues.Add(DiscreteValue);
ParameterFields.Add(ParameterField1);
//tell the viewer to use the users parameter values stored in the ParameterFields array
CrystalReportViewer1.ParameterFieldInfo = ParameterFields;

After this bind the report to the crystal reports viewer
such as:

CrystalReportViewer1.ReportSource = "stringreportpath";

Hope this helps

Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top