Table of Contents

FlexCelReport.SetUserFormat Method

Adds a new user defined format to be used with the report. For information on how to create the user format function, see TFlexCelUserFormat

Syntax

Namespace: FlexCel.Report

public void SetUserFormat(String name, TFlexCelUserFormat formatImplementation)

Parameters

<-> Parameter Type Description
name String Name that the format will have on the report. Case insensitive.
formatImplementation TFlexCelUserFormat An implementation of the user format.

Examples

You can define a format "MFMT" on the following way:

    MyUserFormat myFormatImpl = new MyUserFormat(); //The MyUserFormat class implements an user defined format.
    flexCelReport.SetUserFormat("MFMT", myFormatImpl); //The name used in Excel will be =MFMT().

Then, if you define the format in the config sheet, you can use it inside <#format cell> tags. Note that the name is case insensitive, so both "MFMT" and "mfmt" refer to the same format.

See also