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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void impimeAllPlaingnants_Load(object sender, EventArgs e)
        {
            cmd = new SqlCommand("SELECT * FROM plaignant where id_plaignant like @x or cin like @z or nom like @k", cn);
            cmd.Parameters.Add("@x", "%" + text + "%");
            cmd.Parameters.Add("@z", "%" + text + "%");
            cmd.Parameters.Add("@k", "%" + text + "%");
            da = new SqlDataAdapter(cmd);
            da.Fill(ds, "Plaignant");

            cmd1 = new SqlCommand("select top(1)*from avocat", cn);
            da1  = new SqlDataAdapter(cmd1);
            da1.Fill(ds, "avocat");

            repAllPlaignant i = new repAllPlaignant();

            i.SetDataSource(ds);
            crystalReportViewer1.ReportSource = i;

            cn.Close();
        }