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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 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);
            CrystalReportJour ab = new CrystalReportJour();

            ab.SetDataSource(i);
            ab.SetParameterValue("Jour", DateTime.Today.AddDays(-1).Date.ToString());


            CrystalReportViewer1.ReportSource = ab;
        }