Hi,
We were using following method to get connection string in Crystal Reports:
private void SetDBLogonForReport(ReportDocument myReportDocument, string[] credentials)
{
Tables myTables = myReportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table myTable in myTables)
{
TableLogOnInfo myTableLogonInfo = myTable.LogOnInfo;
myTableLogonInfo.ConnectionInfo.ServerName = credentials[0];
myTableLogonInfo.ConnectionInfo.DatabaseName = credentials[1];
myTableLogonInfo.ConnectionInfo.UserID = credentials[2];
myTableLogonInfo.ConnectionInfo.Password = credentials[3];
myTable.ApplyLogOnInfo(myTableLogonInfo);
myTable.Location = "myDatabase.dbo." + Session["RptView"];
}
rptVwer.ReportSource = myReportDocument;
}
How can we do something similar in Telerik report?
Thank you in advance.
Sumit
We were using following method to get connection string in Crystal Reports:
private void SetDBLogonForReport(ReportDocument myReportDocument, string[] credentials)
{
Tables myTables = myReportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table myTable in myTables)
{
TableLogOnInfo myTableLogonInfo = myTable.LogOnInfo;
myTableLogonInfo.ConnectionInfo.ServerName = credentials[0];
myTableLogonInfo.ConnectionInfo.DatabaseName = credentials[1];
myTableLogonInfo.ConnectionInfo.UserID = credentials[2];
myTableLogonInfo.ConnectionInfo.Password = credentials[3];
myTable.ApplyLogOnInfo(myTableLogonInfo);
myTable.Location = "myDatabase.dbo." + Session["RptView"];
}
rptVwer.ReportSource = myReportDocument;
}
How can we do something similar in Telerik report?
Thank you in advance.
Sumit