示例#1
0
 public void DisplayReport()
 {
     ReportDataManager reportDataManager = new ReportDataManager(connectionString);
     string reportPath = ConfigurationManager.AppSettings["ReportPath"];
     DateTime date = DateTime.Today;
     reportData = reportDataManager.DefaultLayawayReport(date);
     reportViewer.SourceFile = reportPath + "LayawayDefaultReport.rdl";
     reportViewer.Report.DataSets["Data"].SetData(reportData);
     reportViewer.Rebuild();
 }
        public void DisplayReport()
        {
            ReportDataManager reportDataManager = new ReportDataManager(connectionString);
            string            reportPath        = ConfigurationManager.AppSettings["ReportPath"];
            DateTime          date = DateTime.Today;

            reportData = reportDataManager.DefaultPawnReport(date);
            reportViewer.SourceFile = reportPath + "PawnDefaultReport.rdl";
            reportViewer.Report.DataSets["Data"].SetData(reportData);
            reportViewer.Rebuild();
        }