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

            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);
            CrystalReportA ab = new CrystalReportA();

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


            CrystalReportViewer1.ReportSource = ab;
        }