示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Bill3 rpt = new Bill3();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        public void ພມບນToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DSBill         ds  = new DSBill();
            Bill3          rpt = new Bill3();
            string         sql = "Select * from v_Bill where SellID ='" + System.Convert.ToString(dgvOrder.Rows[dgvOrder.CurrentRow.Index].Cells[0].Value) + "'";
            SqlCommand     cm  = default(SqlCommand);
            SqlDataAdapter da  = default(SqlDataAdapter);

            cm = new SqlCommand(sql, ConstVar.connect.DatabaseConnection(ConstVar.constr));
            da = new SqlDataAdapter(cm);
            da.Fill(ds, "DTBill");

            rpt.SetDataSource(ds);

            frm_Bill.Default.rp_Bill.ReportSource = rpt;
            frm_Bill.Default.Show();
        }