예제 #1
0
        public override void Render(ReportPageEventArgs rpea)
        {
            string toPrint = CheckForNullValue();

            base.Text = StandardFormatter.FormatOutput(toPrint, this.FormatString, base.DataType, this.NullValue);
            base.Render(rpea);
        }
예제 #2
0
        public new IBaseExportColumn CreateExportColumn()
        {
            TextStyleDecorator st   = base.CreateItemStyle();
            ExportText         item = new ExportText(st);

            item.Text = StandardFormatter.FormatOutput(DBValue, this.FormatString, base.DataType, this.NullValue);
            return(item);
        }
예제 #3
0
        public static string FormatOutput(string valueToFormat, string format,
                                          string dataType, string nullValue)
        {
            TypeCode typeCode = DataTypeHelper.TypeCodeFromString(dataType);

            return(StandardFormatter.FormatItem(valueToFormat, format,
                                                typeCode, nullValue));
        }
예제 #4
0
        public new BaseExportColumn CreateExportColumn()
        {
            string             toPrint = CheckForNullValue();
            TextStyleDecorator st      = base.CreateItemStyle();
            ExportText         item    = new ExportText(st, false);

            item.Text = StandardFormatter.FormatOutput(toPrint, this.FormatString, base.DataType, this.NullValue);

            return(item);
        }
예제 #5
0
        public override void Render(ReportPageEventArgs rpea)
        {
            if (rpea == null)
            {
                throw new ArgumentNullException("rpea");
            }

            base.Render(rpea);
            base.FillBackground(rpea.PrintPageEventArgs.Graphics);
            //Border b = new Border(new BaseLine (this.ForeColor,System.Drawing.Drawing2D.DashStyle.Solid,1));
            Border b = new Border(new BaseLine(this.FrameColor, System.Drawing.Drawing2D.DashStyle.Solid, 1));

            base.DrawFrame(rpea.PrintPageEventArgs.Graphics, b);

            string formated = StandardFormatter.FormatOutput(this.text, this.FormatString, this.DataType, String.Empty);

            Print(rpea, formated, base.DrawingRectangle);
            base.NotifyAfterPrint(rpea.LocationAfterDraw);
        }
예제 #6
0
        public override void Render(ReportPageEventArgs rpea)
        {
            if (rpea == null)
            {
                throw new ArgumentNullException("rpea");
            }

            base.Render(rpea);

            StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator);

            StandardPrinter.DrawBorder(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator);

            string formated = StandardFormatter.FormatOutput(this.text, this.FormatString, this.DataType, String.Empty);

            Print(rpea, formated, base.DisplayRectangle);

            base.NotifyAfterPrint(rpea.LocationAfterDraw);
        }
예제 #7
0
 public override void Render(ReportPageEventArgs rpea)
 {
     base.Text = StandardFormatter.FormatOutput(DBValue, this.FormatString, base.DataType, this.NullValue);
     base.Render(rpea);
 }