public override void Run()
        {
            reportStructure = new ReportStructure();
            customizer.Set("Generator", reportStructure);
            customizer.Set("ReportLayout", GlobalEnums.ReportLayout.ListLayout);

            if (GlobalValues.IsValidPrinter() == true)
            {
                using (WizardDialog wizard = new WizardDialog("Report Wizard", customizer, WizardPath)) {
                    if (wizard.ShowDialog() == DialogResult.OK)
                    {
                        reportModel = reportStructure.CreateAndFillReportModel();
                        CreateReportFromModel(reportModel);
                    }
                    else
                    {
                        this.canceled = true;
                    }
                }
            }
            else
            {
                MessageService.ShowError(ResourceService.GetString("Sharpreport.Error.NoPrinter"));
            }
        }
        public CurrentPanelPanel(WizardDialog wizard)
        {
            normalFont = WinFormsResourceService.LoadFont("SansSerif", 18, GraphicsUnit.World);

            this.wizard  = wizard;
            Size         = new Size(wizard.Width - 220, 30);
            ResizeRedraw = false;

            SetStyle(ControlStyles.UserPaint, true);
        }
示例#3
0
		public CurrentPanelPanel(WizardDialog wizard)
		{
			normalFont = WinFormsResourceService.LoadFont("SansSerif", 18, GraphicsUnit.World);

			this.wizard = wizard;
			Size = new Size(wizard.Width - 220, 30);
			ResizeRedraw  = false;
			
			SetStyle(ControlStyles.UserPaint, true);
		}
示例#4
0
		public StatusPanel(WizardDialog wizard)
		{
			smallFont  = WinFormsResourceService.LoadFont("Tahoma",  14, GraphicsUnit.World);
			normalFont = WinFormsResourceService.LoadFont("Tahoma", 14, GraphicsUnit.World);
			boldFont   = WinFormsResourceService.LoadFont("Tahoma", 14, FontStyle.Bold, GraphicsUnit.World);
			
			this.wizard = wizard;
			this.BackgroundImage = WinFormsResourceService.GetBitmap("GeneralWizardBackground");
			Size = new Size(198, 400);
			ResizeRedraw  = false;
			
			SetStyle(ControlStyles.UserPaint, true);
			SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
		}
示例#5
0
        public StatusPanel(WizardDialog wizard)
        {
            smallFont  = WinFormsResourceService.LoadFont("Tahoma", 14, GraphicsUnit.World);
            normalFont = WinFormsResourceService.LoadFont("Tahoma", 14, GraphicsUnit.World);
            boldFont   = WinFormsResourceService.LoadFont("Tahoma", 14, FontStyle.Bold, GraphicsUnit.World);

            this.wizard          = wizard;
            this.BackgroundImage = WinFormsResourceService.GetBitmap("GeneralWizardBackground");
            Size         = new Size(198, 400);
            ResizeRedraw = false;

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
        }
示例#6
0
		public override void Run()
		{
			reportStructure = new ReportStructure();
			if (GlobalValues.IsValidPrinter() == true) {
				
				using (WizardDialog wizard = new WizardDialog("Report Wizard", reportStructure, WizardPath)) {
					if (wizard.ShowDialog() == DialogResult.OK) {
						reportModel = reportStructure.CreateAndFillReportModel ();
						CreateReportFromModel(reportModel,reportStructure);
					}
					else{
						this.canceled = true;
					}
				}
			} else {
				MessageService.ShowError(ResourceService.GetString("Sharpreport.Error.NoPrinter"));
			}
		}