public override void Render(ReportPageEventArgs rpea) { string toPrint = CheckForNullValue(); base.Text = StandardFormatter.FormatOutput(toPrint, this.FormatString, base.DataType, this.NullValue); base.Render(rpea); }
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); }
public static string FormatOutput(string valueToFormat, string format, string dataType, string nullValue) { TypeCode typeCode = DataTypeHelper.TypeCodeFromString(dataType); return(StandardFormatter.FormatItem(valueToFormat, format, typeCode, nullValue)); }
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); }
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); }
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); }
public override void Render(ReportPageEventArgs rpea) { base.Text = StandardFormatter.FormatOutput(DBValue, this.FormatString, base.DataType, this.NullValue); base.Render(rpea); }