如何在Telerik报表文本框中显示值

时间:2019-04-02 09:50:00

标签: c# telerik reporting telerik-reporting

我是Telerik Report中的新手。我可以显示数据SQLDataSource到报表表,但是 我如何在Telerik Rerpot TextBox中显示值。

Telerik.Reporting.SqlDataSource sqlDataSource = new 
Telerik.Reporting.SqlDataSource();
sqlDataSource.ConnectionString = "MyAdventureWorksDB";
sqlDataSource.SelectCommand = "SELECT top 1 * FROM Person.Contact WHERE FirstName = 
@FirstName AND LastName = @LastName";
sqlDataSource.Parameters.Add("@FirstName", System.Data.DbType.String, "John");
sqlDataSource.Parameters.Add("@LastName", System.Data.DbType.String, "Smith");

0 个答案:

没有答案