예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SuppliersRPT rpt = new SuppliersRPT();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            DataSet dataSetReport = new DataSet();

            BoughtLeafBusinessLayer.BLSupplier myAccount = new BoughtLeafBusinessLayer.BLSupplier();
            dataSetReport = myAccount.viewSupplierList(cmbRoute.SelectedValue.ToString());
            dataSetReport.WriteXml("SupplierList.xml");
            SuppliersRPT myaclist = new SuppliersRPT();

            myaclist.SetDataSource(dataSetReport);
            ReportViewer myReportViewer = new ReportViewer();

            myaclist.SetParameterValue("Company", BoughtLeafBusinessLayer.BLUser.getCompanyName());
            myReportViewer.crystalReportViewer1.ReportSource = myaclist;
            myReportViewer.Show();
        }