Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            repAllParPlai rpt = new repAllParPlai();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void imprimerAllPar_Plai_Load(object sender, EventArgs e)
        {
            cmd = new SqlCommand("SELECT * FROM par_plaignant where id_par_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, "par_plai");

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

            repAllParPlai i = new repAllParPlai();

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

            cn.Close();
        }