How Do I Add Custom Code to a Report?
    • 20 Mar 2024
    • 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 Editor.

    2. Click Save and close the 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.


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.