Esempio n. 1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ReporterBO reporterBO = new ReporterBO();
            reporterBO.UpdateLocalReportFilesFromServer();

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

            if (reportName != null)
            {
                string localReportPath = reporterBO.Settings.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();
        }
Esempio n. 2
0
        public ReportCloner(ReporterBO reporterBO)
        {
            InitializeComponent();

            _reporterBO = reporterBO;
            _reportPath = reporterBO.SelectedReportPath;

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

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

            _reportDocument = reportDocument;
            _parameterFields = reportDocument.ParameterFields;
            _reporterBO = reporterBO;
        }
Esempio n. 4
0
        public ReportGenerator(ReporterBO reporterBO)
        {
            InitializeComponent();

            _reporterBO = reporterBO;
            _reportWizardDataSources = new List<ReportWizardDataSource>();

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

            LoadCombos();
        }
 public ReporterBOTester()
 {
     InitializeComponent();
     _reporterBO = new ReporterBO();
     GetReports();
 }
Esempio n. 6
0
 public ReportSelector(ReporterBO reporterBO)
 {
     InitializeComponent();
     _reporterBO = reporterBO;
     this.Text = base.Title + " - Report Selector";
 }