Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportM rpt = new CrystalReportM();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #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);
            CrystalReportM ab = new CrystalReportM();

            ab.SetDataSource(i);
            ab.SetParameterValue("c", Diagrame.c);
            ab.SetParameterValue("d", Diagrame.d);


            CrystalReportViewer1.ReportSource = ab;
        }