Setting Parameter value to droplist selected item
Posted on 2004-10-03
Hi, I'm using C# and Visual Studio.net 2003. I have crystal Reports 10 and My project is an ASP. I have a droplist which is filled from a dataset. This works fine but I want to be able to select a value from the droplist and set the parameter and then call my report. Maybe using a button to call the report. I have The Complete Reference on Crystal Reports 10 and can't find an example on how to do this anywhere. I have a paramater defined for the report named p_name. I have set the table field of LastName equal to p_name in the select expert in the report. If I run the report it promts me for the parameter. The value type for the db field and parameter is a string. When I enter the parameter value for the prompt the report is called and the data is filtered correctly.
I just want to be able to do this from my droplist which is what the end user needs to be able to do. I'm new to .net and CrystalReports so could you please include any name spaces I would need in your example. I have been searching endlessly for a way to do this. Please help me. If you could explain it that would be great but if you know of a specific example to go along with it that would be awesome.