Index
Field Formats
Certain form fields need to have a specific format on their respective forms.
TextField has no format.
PhoneField has a default format of ‘122 1232345‘. Use the OverridenValue property to set a custom value or format.
DateField has a format of ‘MM dd yy‘. Use the OverridenValue property to set a custom value or the DateField.FORMAT static property to change the format.
PriceField will print a number without commas or decimal places. The number of spaces that replaces the decimal point can be modified using the NumberOfSpacesAfterDecimal property. The decimal point can also be printed using the PrintDecimalPoint property.
Example
CMS1500Form cmsForm = new CMS1500Form();
cmsForm.BeforePrint += cmsForm_BeforePrint;
private void cmsForm_BeforePrint(object sender, FormEventArgs e)
{
//e.Cells has all fields that will be send to printer.
//The field properties can be modified
if (e.Cells[0] is PriceField)
{
(e.Cells[0] as PriceField).NumberOfSpacesAfterDecimal = 2;
}
{
(e.Cells[0] as PriceField).NumberOfSpacesAfterDecimal = 2;
}
}
in General