1

我需要在 Telerik 报告中显示一个值。我需要将报告参数传递给返回此单个值的函数,并将该返回值显示在报告正文的文本框中。

我该怎么做呢?

4

1 回答 1

1

我建议在报表的部分类中添加一个属性并将其分配给NeedDataSource事件处理程序中的控件。

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

    private void Report1_NeedDataSource(object sender, EventArgs e)
    {
         myTextBox.Text = ScalerValue.ToString();
    }
}
于 2011-04-12T17:58:07.107 回答