コード例 #1
0
ファイル: LastLoc.cs プロジェクト: Youssef-f2/ScrumProject01
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            LastLoc rpt = new LastLoc();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            o.conex();
            DataSet        datas = new DataSet();
            SqlDataAdapter da    = new SqlDataAdapter("Select * from LastLocation ", o.cn);

            da.Fill(datas, "Loc");
            SqlDataAdapter da2 = new SqlDataAdapter("Select * from LastLocationVoiture ", o.cn);

            da2.Fill(datas, "V");
            SqlDataAdapter da3 = new SqlDataAdapter("Select * from LastLocationLocateur ", o.cn);

            da3.Fill(datas, "Loct");


            LastLoc LA = new LastLoc();

            LA.SetDataSource(datas);
            crystalReportViewer1.ReportSource = LA;
            crystalReportViewer1.Refresh();
            o.Deconex();
        }