You can extend the report engine with your own functions, which users then call from expressions in the web designer.

Implement the function. A public static method does the work:
public static string MyFunc(string value)
{
    return value.ToUpper();
}
Register it in the static constructor. Describe its category, types and parameters:
StiFunctions.AddFunction(
    "MyCategory", "MyFunc", "MyFunc", "Description",
    typeof(DesignerController), typeof(string), "Return Description",
    ParamTypes, ParamNames, ParamDescriptions);

How it works. The engine resolves the custom name to your method at render time, so report authors call your code as if it were built in.
In the screenshot below you can see the result of the sample code:

Adding a Custom Function to the Designer

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.