AUTHOR: Stephania Tapela
DATE POSTED: June 14, 2016
Article information
Article relates to
Telerik Reporting
Created by
Stef, Telerik
Last modified
June 14th, 2016
Last modified by
public
static
ReportSource SetReportSource(
string
field)
{
var TRS =
new
TypeReportSource();
TRS.Parameters.Add(
"Parameter1"
, field);
if
(field.ToLower() ==
"yes"
)
TRS.TypeName =
typeof
(SubReport1).AssemblyQualifiedName;
else
(SubReport2).AssemblyQualifiedName;
return
TRS;
}
this
.subReport1.Bindings.Add(
Telerik.Reporting.Binding(
"ReportSource"
,
"= SetReportSource(Fields.MainReportFieldX)"
));
Resources Buy Try