How Do I Add Custom Code to a Report?
    • 02 Jun 2025
    • 1 Minute to read
    • Contributors
    • PDF

    How Do I Add Custom Code to a Report?

    • PDF

    Article summary

    It is possible to add a Custom Code to a Lasernet-activated report. This article contains an example of how to add a logo string using custom code.

    Adding custom code

    1. Navigate to Lasernet > Reports and select the report required.

    2. Select Elements on the Action pane.

    3. Locate the section where you want the logo string to be.

    4. Expand the Fields section and click New to add an element.

    5. Navigate to Expression > CustomCode > Create new custom method.

    1. Add your code to the Expression editor.

    2. Click Save and close the Expression editor.

    1. Refresh the window by clicking the F5 key.

    2. Select the new method.

    1. Close the Elements form.

    Note

    An Infolog will be shown with the ‘Stylesheet updated’ message.