public ReportScheduler(ReporterBO reporterBO)
        {
            InitializeComponent();
            _reporterBO = reporterBO;

            this.Text = base.Title + " - Report Scheduler";
        }
예제 #2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ReporterBO reporterBO = new ReporterBO();

            Application.Run(new ReportScheduler(reporterBO));

            //CommandLineParser parser = new CommandLineParser(args);
            //string reportName = parser["reportName"];

            //if (reportName != null)
            //{
            //    string localReportPath = reporterBO.SettingsFile.LocalReportFolder + reportName;

            //    if (File.Exists(localReportPath))
            //    {
            //        reporterBO.SetSelectedReportByReportPath(localReportPath);
            //        reporterBO.SetParameterSetNameArg(parser["parameterSetName"]);

            //        Application.Run(new ReportViewer(reporterBO));
            //    }
            //    else
            //        Application.Run(new ReportSelector(reporterBO));
            //}
            //else
            //    Application.Run(new ReportSelector(reporterBO));

            //parser = null;
            reporterBO.Dispose();
        }
예제 #3
0
        public ReportViewer(ReporterBO reporterBO)
        {
            InitializeComponent();

            _reporterBO = reporterBO;
            _reportPath = reporterBO.SelectedReportPath;

            this.Text = base.Title + " - Report Viewer";
        }
        public ReportParameterSelector(ReportDocument reportDocument, ReporterBO reporterBO)
        {
            InitializeComponent();

            this.Text = base.Title + " - Report Parameters";

            _reportDocument  = reportDocument;
            _parameterFields = reportDocument.ParameterFields;
            _reporterBO      = reporterBO;
        }