This answers the question of how to set the report source. i.e. "SampleReport.trdp"
The original question was how to change the DataSource of a report. As in SQL command etc... There is no documentation of this for the newer HTML5 report viewer.
Example under the old reporting system:
Dim
report
As
Telerik.Reporting.Report =
DirectCast
(xmlSerializer.Deserialize(xmlReader), Telerik.Reporting.Report)
report.DataSource = GetData(strSRDID)
Shared
Function
GetData(strSRDID
As
String
)
As
IDataAdapter
Dim
connectionString
As
String
= ConfigurationManager.ConnectionStrings(
"BOSTradeConnectionString"
).ToString
Dim
selectCommandText
As
String
=
"SELECT fLoadSortStringText_1.SortString, dbo.tblScaleData.* FROM dbo.tblScaleData INNER JOIN dbo.fLoadSortStringText() AS fLoadSortStringText_1 ON dbo.tblScaleData.SRDID = fLoadSortStringText_1.SRDID WHERE (dbo.tblScaleData.SRDID IN ( "
& strSRDID &
"))"
'Dim selectCommandText As String = "select * from fLoadSortStringTable(" & strSRDID & ")"
Return
New
SqlDataAdapter(selectCommandText, connectionString)
End
Function