try { string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con2 = new SqlConnection(CS)) { ReportsBasikData.ReportCatCustomers2 reportcustomer = new ReportsBasikData.ReportCatCustomers2(); reportcustomer.SetDatabaseLogon("pc1", "Abdo1379", "con2", "MnStores", false); reportcustomer.SetParameterValue("@catId", this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); ReportsBasikData.FormData fmct = new ReportsBasikData.FormData(); fmct.crystalReportViewer1.ReportSource = reportcustomer; fmct.ShowDialog(); } } catch { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)