Search Results for

    Show / Hide 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

    • FlexCelReport
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com