开发者

How to display single scalar value in Telerik Report?

开发者 https://www.devze.com 2023-02-25 14:44 出处:网络
I need to show a single value in telerik report. I need to pass report parameters 开发者_运维问答to the function that returns this single value and and display that returned value in a textbox in the

I need to show a single value in telerik report. I need to pass report parameters 开发者_运维问答to the function that returns this single value and and display that returned value in a textbox in the body of the report.

How do I do this?


I would suggest adding a property in the the partial class of the report and assign it to the control in the NeedDataSource event handler.

public partial class SimpleReport : Telerik.Reporting.Report
{
    public int ScalerValue;

    private void Report1_NeedDataSource(object sender, EventArgs e)
    {
         myTextBox.Text = ScalerValue.ToString();
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消