System.Data.Common.DbConnectionStringBuilder builder = new System.Data.Common.DbConnectionStringBuilder(); builder.ConnectionString = clsData_Helper.GetConnStr(); crConnectionInfo = new ConnectionInfo(); crConnectionInfo.ServerName = builder["Data Source"] as string; crConnectionInfo.DatabaseName = Billing_System.Classes.clsShareData.DataBaseName; Convert.ToString(builder["Password"]); crConnectionInfo.IntegratedSecurity = true; crDatabase = CryRptDoc.Database; crTables = crDatabase.Tables; foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crTables) { crTableLogonInfo = crTable.LogOnInfo; crTableLogonInfo.ConnectionInfo = crConnectionInfo; crTable.ApplyLogOnInfo(crTableLogonInfo); } crystalReportViewer1.ReportSource = CryRptDoc;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)