Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            FactureReport rpt = new FactureReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void Report_Load(object sender, EventArgs e)
        {
            using (SqlConnection connexion = new SqlConnection(connectionString))
            {
                connexion.Open();
                SqlCommand     cmd = new SqlCommand("SELECT * FROM Commande where id_table = '" + id_table + "' and facture = 'Non facturé'", connexion);
                SqlDataAdapter da  = new SqlDataAdapter(cmd);
                RestoDataSet   ds  = new RestoDataSet();
                da.Fill(ds.Commande);

                SqlCommand     cmd2 = new SqlCommand("SELECT * FROM Tablee where id_table = '" + id_table + "'", connexion);
                SqlDataAdapter da2  = new SqlDataAdapter(cmd2);
                da2.Fill(ds.Tablee);

                FactureReport facture = new FactureReport();
                facture.SetDataSource(ds);
                factureViewer.ReportSource = facture;
                factureViewer.Refresh();
            }
        }