public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Report3 rpt = new Report3(); rpt.Site = this.Site; return(rpt); }
private void button1_Click_1(object sender, EventArgs e) { Report3 rep = new Report3(); test ds = new test(); accountTableAdapter ct = new accountTableAdapter(); ct.Fill(ds.account); rep.SetDataSource(ds); rep.SetParameterValue("value2", comboBox1.SelectedItem.ToString()); crystalReportViewer1.ReportSource = rep; }