public ReportDesignerUserControl(EbReportDefinition def)
 {
     InitializeComponent();
     this.ReportDefinition = def;
     this.BackColor        = Color.Transparent;
     this.DoubleBuffered   = true;
 }
        public ReportSettingsForm()
        {
            InitializeComponent();
            cmbPageSize.SelectedIndexChanged += CmbPageSize_SelectedIndexChanged;

            cmbPageSize.BeginUpdate();

            foreach (System.Reflection.FieldInfo finfo in typeof(iTextSharp.text.PageSize).GetFields())
            {
                if (finfo.FieldType == typeof(iTextSharp.text.Rectangle))
                {
                    var rect = (iTextSharp.text.Rectangle)finfo.GetValue(null);
                    cmbPageSize.Items.Add(new EbReportPaperSize(finfo.Name, rect.Width, rect.Height));
                }
            }

            cmbPageSize.EndUpdate();

            this.PopulateDataSources();

            this.ReportDefinition = new EbReportDefinition();
        }
 public ReportDesignerForm(EbReportDefinition def)
 {
     InitializeComponent();
     this.ReportDefinition = def;
     this.DoubleBuffered   = true;
 }