Beispiel #1
0
        private void QuotationBind()
        {
            this.QuotationView.Reset();
            this.QuotationView.LocalReport.Dispose();
            this.QuotationView.LocalReport.DataSources.Clear();

            ReportDataSource QuotationDataSource = new ReportDataSource();

            QuotationDataSource.Name = "DataSet1";
            ReportBll reportbll = new ReportBll();
            string    filepath  = Server.MapPath("~/Content/Report/Quotation/QuotationJson.txt");

            QuotationDataSource.Value = reportbll.GetQuotationList(filepath, "");
            this.QuotationView.LocalReport.DisplayName = "报价单";
            this.QuotationView.LocalReport.ReportPath  = Server.MapPath("~/Content/Report/Quotation/Quotation.rdlc");
            this.QuotationView.LocalReport.DataSources.Add(QuotationDataSource);
            this.QuotationView.LocalReport.Refresh();
        }