Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportMois rpt = new CrystalReportMois();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataSet1TableAdapters.peséeTableAdapter b = new DataSet1TableAdapters.peséeTableAdapter();
            DataSet1TableAdapters.PosteTableAdapter c = new DataSet1TableAdapters.PosteTableAdapter();
            DataSet1 i = new DataSet1();

            b.Fill(i.pesée);
            c.Fill(i.Poste);
            CrystalReportMois ab = new CrystalReportMois();

            ab.SetDataSource(i);
            ab.SetParameterValue("Mois", DateTime.Now.Month);
            ab.SetParameterValue("Annee", DateTime.Now.Year);

            CrystalReportViewer1.ReportSource = ab;
        }