--- title: "How Do I Set Up and Use OutFile in the Default Configuration?" slug: "how-do-i-set-up-and-use-outfile-in-the-default-configuration" description: "This article describes how the OutFile module is used within the Lasernet 9 Default Configuration for the Lasernet FO Connector. " updated: 2026-04-27T15:19:55Z published: 2026-04-27T15:19:55Z canonical: "kb.lasernetgroup.com/how-do-i-set-up-and-use-outfile-in-the-default-configuration" --- > ## 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 Set Up and Use OutFile in the Default Configuration? This article describes how the **OutFile** module is used within the Lasernet 9 Default Configuration for Lasernet FO Connector. The **OutFile** output module in the default configuration is used as a type of storage for FO. This type of storage may be used for on-premises solutions that do not use Azure Storage and, instead, use a file system to print reports. ## Setup in Lasernet FO Connector Follow these steps within FO to set up the module: 1. Navigate to **Lasernet** > **Setup** > **Administration** > **Connections**. 2. Create a new connection with **Connection Type**: **Storage**, **Type**: **File System**, and specify a **Directory path**. This connection will be Lasernet FO Connector’s output location and the Lasernet input location. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-SGXY3AMW.png) 1. Create another new connection with **Connection Type**: **Storage**, **Type**: **File System**, and specify a **Directory path**. This connection will be Lasernet’s output location and Lasernet FO Connector’s archive location. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-51APSTRE.png) 1. Navigate to **Lasernet** > **Setup** > **Administration > Lasernet servers**. 2. Create a new Lasernet server. Give it a **Server name**, **Description**, **Default for**, and make it **Active**. 3. Set your **Outgoing connection** to the file input created in step 2. 4. Set your **D365FO connection to reports storage** to the file output created in step 3. The **D365FO connection to reports storage**’s connection type determines the **OutStorageType** jobInfo in the XML. In this case, the **OutStorageType** will be **FileSystem**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-TPWWCDSB.png) 1. Navigate to **Lasernet Server** > **Lasernet Developer** > **Modules**, ensure **ListeningOnFiles** is **Active**, and the **Directory path** matches the **Outgoing connection** on your Lasernet server in step 3. If this is completed and deployed, the Lasernet server in Lasernet FO Connector will validate successfully. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638180979239.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-TFG1J1J7.png) 1. Try printing a report to this server from Dynamics 365 FO. As a test, print to **Lasernet Screen**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638180979538.png) 1. Review the XML file generated by Lasernet FO Connector. **OutputFilePath** is populated with the path you determined in the connection. **OutFileStorage** is populated, and **OutputStorageType** is **FileSystem**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638180979677.png) ## Process in the Lasernet Server Follow these steps: 1. Navigate to **Lasernet Server** > **Lasernet Developer** > **Modules**. 2. Select the **Destination selection Pass-Through** and open the **Destinations** tab. The **OutFile** output module in the Default Configuration depends on the JobInfo **runOutFile = true**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-433COF90.png) This JobInfo is set in the script `setCriteriaVariables()`. 1. Close the **Destination selection Pass-through**, and select **Scripts**. 2. Scroll down to **LAC Functions** and double-click **setCriteriaVariables()**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638181052732.png) 1. Scroll to the line where **var** **runOutFile** is set. Variable **runOutFile** will only be true if the JobInfo **OutStorageType** is **FileSystem**, the job is not a **printOut**, the file is a PDF, and both **OutFileStorage** and **OutFilePath** are not empty. All these conditions are met with the setups carried out in Lasernet FO Connector. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638181052827.png) 1. You can verify the value for **runOutFile** in Lasernet Monitor. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638181052925.png) If **runOutFile** is true, the job is sent to the **OutFile** module, and the JobInfo **OutFilePath** is used as the **Directory path**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638181053018.png) 1. To verify files are being sent to the proper **Directory path**, navigate to the directory path. The file is saved. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1638181053108.png) ## How to Stop XML from Being Saved in the File Output Folder with a PDF There are two ways to avoid having an XML file saved in the File Output folder with a PDF. The first way is to disable **Archiving**. Follow these steps: 1. Open FO and navigate to **Lasernet** > **Reports** > **Archive**. 2. In the **Archive** field, select **No**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1658825706795.png) The second way is to enable **Archiving** with **Save XML** disabled. Follow these steps to do so: 1. Select **Default** under the **Archive** field. 2. Toggle the **Save XML** button to **No**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1658825767175.png)