General – Overriding Field Values

Index

    Overriding Field Values

    By default the value set on the CMSFormData and UBo4FormData objects will be printed on their respective forms.  Overriding the value just before printing can be achieved in the BeforePrint event

    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
        e.Cells[0].OverriddenValue = “My New Value”;
    }
    in General
    Did this article answer your question?