Reports for WinForms | ComponentOne
In This Topic
    Creating Custom Fields
    In This Topic

    You can create your own custom fields and add them to the Report Designer palette. To do that, you have to:

    1. Create a custom field class that derives from C1.C1Report.Field.
    2. Register your custom field assembly in C1ReportDesigner.exe.settings.

    For registering a custom field, say MyField, add your control to the <customfields> section in the C1ReportDesigner.exe.settings file as follows:

    <customfields>
    <!-- THIS LINE ADDS A NEW FIELD TO THE DESIGNER -->
    <item value="MyCustomFieldAssembly;MyCustomFieldAssembly.MyField" />
    </customfields>
    

    Note that the code above assumes that your field is called "MyField" and it can be found in the assembly called "MyCustomFieldAssembly".

    Following are built-in standard custom fields that are loaded in the C1ReportDesigner application by default:

    Note: For more insight on custom fields, see report "12: Custom Fields" in the CommonTasks.xml report definition file, which is available in the ComponentOne Samples folder.