EK RTF report components for .Net
PreviousUpNext
Format functions in report

Different format functions may be used in a report, depending on data type: 

 

Numbers - fexp, ffix, fnum, ffixr, fnumr, fcur format. 

 

Date and time - fdtm format. 

 

Graphics - fimg format, OnImageFormat event. 

 

Hyperlink - flnk format. 

 

Boolean - fbool format, TrueValue, FalseValue properties. 

 

Rich text format - frtf format.

Name 
Description 
Numeric values may be formatted with exponent, fixed, numeric or currency format. For this in report template use functions fexp, ffix, ffixr, fnum, fnumr or fcur. For example: \fnum(a:field1)\... more 
Function fdtm uses System.DateTime.ToString(String) method, which converts the value of this instance to its equivalent string representation using the specified format.

Syntax is fdtm(variable,format_string), where format_string is a constant... more 
Graphic image may be inserted from blob, graphic field or from external graphic file, using format function fimg. For example: \fimg(a:field2)\, \fimg(a:field2,1)\.

Function format for blob and... more 
Value of variable and database field may be inserted as hyperlink. For this use function flnk. For example: \flnk(var1)\. Value of var1 may be set to string http://www.yahoo.com... more 
fbool(variable) or fbool(datafield)
Boolean value will be formatted in according with properties TrueValue and FalseValue.

Example:
Property TrueValue set to "Yes"
var1 is True

in a report... more 
frtf(variable) or frtf(datafield)

Frtf function will format rtf code as a rich text.
String representation of a report variable or database field expected to be like this:

{\rtf1\ansi\deff0\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset204 Times... more 
Copyright (c) 2007. All rights reserved.