public static BottomMarginBand AddBottomMarginBand(this XtraReport report)
        {
            var result = report.GetBandByType <BottomMarginBand>();

            if (result == null)
            {
                result = new BottomMarginBand
                {
                    HeightF = report.Margins.Bottom
                };
                report.Bands.Add(result);
            }
            return(result);
        }
        public static PageHeaderBand AddPageHeaderBand(this XtraReport report)
        {
            var result = report.GetBandByType <PageHeaderBand>();

            if (result == null)
            {
                result = new PageHeaderBand()
                {
                    HeightF = 0F,
                };
                report.Bands.Add(result);
            }
            return(result);
        }
        public static TopMarginBand AddTopMarginBand(this XtraReport report)
        {
            var result = report.GetBandByType <TopMarginBand>();

            if (result == null)
            {
                result = new TopMarginBand
                {
                    HeightF = report.Margins.Top
                };
                report.Bands.Add(result);
            }
            return(result);
        }