public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { InTheKH rpt = new InTheKH(); rpt.Site = this.Site; return(rpt); }
private void button3_Click(object sender, EventArgs e) { Random rd = new Random(); textBox2.Text = "C:\\Users\\Administrator\\Desktop\\KLTN_UDQLKH\\KLTN_UDQLKH\\icon\\" + rd.Next(1, 100).ToString() + ".jpg"; GenerateQrcode(textBox1.Text, textBox2.Text); List <TheKH> data = new List <TheKH>(); CT_HOADON_BLL bll = new CT_HOADON_BLL(); data = bll.Print(textBox1.Text, textBox6tenkh.Text, textBox2.Text, textBox6loai.Text); InTheKH rpt1 = new InTheKH(); rpt1.SetDataSource(data); crystalReportViewer1.ReportSource = rpt1; }