Hi Sarah,
There is many examples available, but the method I use that works is;
if(rptDoc.DataDefinition.ParameterFields.Count > 0)
{
foreach(ParameterFieldDefinition crDef in rptDoc.DataDefinition.ParameterFields)
{
if(crDef.ReportName == string.Empty)
{
object objValue = "What ever value I want to use";
rptDoc.SetParameterValue(crDef.ParameterFieldName, objValue);
}
}
}
You can then run the report & show in a WebViewer or export to a stream and return as a PDF/Word/Excel etc
Kind Regards