--- title: "How Do I Add Custom Code to a Report in AX 2012?" slug: "how-do-i-add-custom-code-to-a-report" description: "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." tags: ["Lasernet Connector ", "Report", "AX2012", "Code"] updated: 2025-06-02T12:11:55Z published: 2025-06-02T12:11:55Z canonical: "kb.lasernetgroup.com/how-do-i-add-custom-code-to-a-report" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # How Do I Add Custom Code to a Report? 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**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-I5244ZAR.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-8WD1ENUI.png) 1. Add your code to the Expression editor. 2. Click **Save** and close the Expression editor. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-HPZRSYNA.png) 1. Refresh the window by clicking the **F5** key. 2. Select the new method. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-SG1CKOOZ.png) 1. Close the **Elements** form. > [!NOTE] > Note > > An Infolog will be shown with the ‘Stylesheet updated’ message.