Field

Field

The Field element defines a report object used to draw data on a report.

<!ELEMENT Field EMPTY>
<!ATTLIST Field
     Field           CDATA #REQUIRED
     Text            CDATA #REQUIRED
     X               CDATA #REQUIRED
     Y               CDATA #REQUIRED
     Width           CDATA #REQUIRED
     Height          CDATA #REQUIRED
     BackgroundColor CDATA #REQUIRED
     ForegroundColor CDATA #REQUIRED
     BorderColor     CDATA #REQUIRED
     BorderWidth     CDATA #REQUIRED
     BorderStyle     CDATA #REQUIRED
     FontFamily      CDATA #REQUIRED
     FontSize        CDATA #REQUIRED
     FontWeight      CDATA #REQUIRED
     FontItalic      CDATA #REQUIRED
     HAlignment      CDATA #REQUIRED
     VAlignment      CDATA #REQUIRED
     WordWrap        CDATA #REQUIRED
     DataType        CDATA #REQUIRED
     DateFormat      CDATA #REQUIRED
     Precision       CDATA #REQUIRED
     Currency        CDATA #REQUIRED
     NegValueColor   CDATA #REQUIRED
     CommaSeparator  CDATA #REQUIRED>
Attributes
Field

Sets the data field for the object. This is a row attribute from a “MetaphrastRowset” data document.

Text

Not used.

X

Sets the x coordinate for positioning the field.

Y

Sets the y coordinate for positioning the field.

Width

Sets the width of the field.

Height

Sets the height of the field.

BackgroundColor

Sets the background color of the field. he color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

>ForegroundColor

Sets the foreground color of the field. The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

BorderColor

Sets the border color of the field. The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

BorderWidth

Sets the border width for the field.

BorderStyle

Sets the border style for the field.

ValueBorder Style
0None
1Solid
2Dash
3Dot
4Dash Dot
5Dash Dot Dot
FontFamily

Sets the font family for the field's text.

FontFamily="Helvetica"

FontSize

Sets the font size for the field's text.

FontWeight

Sets the font weight for the field's text.

ValueFont Weight
25Light
50Normal
63Demi Bold
75Bold
87Black
FontItalic

Sets the font italic flag for the field's text.

ValueItalic
0False
1True
HAlignment

Sets the field's horizontal text alignment.

ValueHorizontal Alignment
0Left
1Center
2Right
VAlignment

Sets the field's vertical text alignment

ValueVertical Alignment
0Top
1Middle
2Bottom
WordWrap

Sets the word wrap flag for the field's text.

ValueWord Wrap
0False
1True
DataType

Sets the field's data type.

ValueData Type
0String
1Integer
2Float
3Date
4Currency
DateFormat

Sets the field's date format. For this to work, the format of the date from the data document must be in the format mm/dd/yyyy or mm-dd-yyyy, otherwise the original date format is used. If data type other than date, set to 0.

ValueDate Format
0m/d/yy
1m-d-yy
2mm/dd/yy
3mm-dd-yy
4m/d/yyy
5m-d-yy
6mm/dd/yyyy
7mm-dd-yyyy
8yyyy/m/d
9yyyy-m-d
Precision

Sets the field's numeric precision. If data type other than a numeric type, set to 0.

Currency

Sets the field's currency symbol If data type other than currency, set to 36 ($). The value is a number representing a Unicode character.

NegValueColor

Sets the color for negative numeric values. The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255. If data is other than a numeric type, set to 255,0,0.

CommaSeparator

Sets whether commas are used in numeric fields. If data type other than a numeric type, set to 0.

ValueComma Separator
0False
1True
KDE Logo