Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Report DataSource

$
0
0

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:

 

Dimreport AsTelerik.Reporting.Report = DirectCast(xmlSerializer.Deserialize(xmlReader), Telerik.Reporting.Report)
report.DataSource = GetData(strSRDID) 
 
 
SharedFunctionGetData(strSRDID AsString) AsIDataAdapter
        DimconnectionString AsString= ConfigurationManager.ConnectionStrings("BOSTradeConnectionString").ToString
        DimselectCommandText AsString= "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 & ")"
        ReturnNewSqlDataAdapter(selectCommandText, connectionString)
EndFunction

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>