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); }
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); }
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")); } }