I have designed a report that I need to programmatically set the connection string
my report viewer code is
Here is my data source deceleration from the XML file:
How do I programmatically set the connection string "hippo"?
Thanks!
my report viewer code is
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try If Not IsPostBack Then Dim uriReportSource As New Telerik.Reporting.UriReportSource() Dim r As reportObj = daoFactory.GetreportObjDao.GetById(New Guid(Request.QueryString("ID")), False) Dim path As String = System.Web.HttpRuntime.AppDomainAppPath + "Temp\" path += ClientID.ToString() + "\" + r.FileName uriReportSource.Uri = path Me.trv.ReportSource = uriReportSource End If Catch ex As Exception error(ex) End Try End SubHere is my data source deceleration from the XML file:
<DataSources> <SqlDataSource ConnectionString="hippo" SelectCommand="select top 1 fl.license, f.*, a.* from t_facility_license fl inner join t_facility f on f.facilitylicenseguid = fl.facilitylicenseguid outer apply ( select top 1 * from t_address where foreignkeyguid = f.facilityguid and addresstype = 'Physical' ) a where fl.facilitylicenseguid = @FacilityLicenseGuid order by f.createdate" Name="FacilityLicense"> </SqlDataSource></DataSources>How do I programmatically set the connection string "hippo"?
Thanks!