Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InTheKH rpt = new InTheKH();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        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;
        }