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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void report_Load(object sender, EventArgs e)
        {
            try
            {
                MySqlConnection  con = new MySqlConnection(Database.ConnectionString());
                ListeDemande     LD  = new ListeDemande();
                MySqlDataAdapter dab = new MySqlDataAdapter(query, con);
                DataSet1         DSP = new DataSet1();
                dab.Fill(DSP.DataTable1);
                LD.SetDataSource((DataTable)DSP.DataTable1);
                crystalReportViewer1.ReportSource = LD;
                crystalReportViewer1.Refresh();
                con.Close();
            }

            catch (Exception ex)
            {
            }
        }