Hi,
I've created trdx file with standalone report designer to user function "GetMonth(now.month)" in textbox
I've added report viewer like below code into codebehind onload;
Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
uriReportSource.Uri = "Report1.trdx";
ReportViewer1.ReportSource = uriReportSource;
and i've added custom function
public static object GetMonth(int value)
{
return System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(value);
}
But it gives below error:
An error has occurred while processing TextBox 'textBox21': The expression contains undefined function call GetMonth().
Please help me, how can i call user custom function from trdx file on report viewer?