Int64 currCatId = Convert.ToInt64(lstCategory.SelectedValue); try { // string queryStr = "SELECT cmp.campaign_name,cmp.campaign_status,cmp.start_date,cmp.end_date,cmp.num_sent,cmp.budgeted_cost,cat.category as cat_id FROM crm_campaign cmp INNER JOIN crm_category cat ON cmp.cat_id=cat.cat_id where cmp.cat_id=" + currCatId + ""; string queryStr = "SELECT cmp.* FROM crm_campaign cmp where cmp.cat_id=" + currCatId + ""; ClassDtBaseConnect clsDtResult = new ClassDtBaseConnect(); DataTable dt = clsDtResult.GetDataTable(queryStr); ReportDocument myreportDoc = new ReportDocument(); myreportDoc.Load(Server.MapPath("TestingCrystalReport.rpt")); myreportDoc.SetDataSource(dt); CrystalReportViewer1.ReportSource = myreportDoc; // CrystalReportViewer1.RefreshReport(); } catch (Exception Ex) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)