Use File System Storage Options to Add Images to a Dynamics 365 FO Report
    • 12 Nov 2024
    • 2 Minutes to read
    • Contributors
    • PDF

    Use File System Storage Options to Add Images to a Dynamics 365 FO Report

    • PDF

    Article summary

    This article will demonstrate how to add images from File System storage to Dynamics 365 FO using Lasernet Form Editor and how to set up the Form Editor.

    Note

    For a detailed introduction on Lasernet Connector Setup, and the prerequisites for this task, see:

    How do I use alternative storage options to add images to a Dynamics 365 FO report?

    If instead you wish to use images from Azure Storage instead of the File System, see:

    Use Azure Storage options to add images to a Dynamics 365 FO report

    The steps for this process are as follows:

    1. Ensure that the File Path specified in the XML is present on the Server where the Lasernet Developer is. You will make these nodes JobInfos. Click the JobInfo button (1) in the left-hand Toolbar and select the node for which you would like to create a JobInfo (2).

    In this example, we will make the following nodes JobInfos:

    • ImageStorage

    • ImageFolder

    • ImageExtension

    The images to be used for the File Path will appear as follows:

    1. On the Toolbar, click the arrow on the bottom-right of the Image icon and select Job > File. The cursor turns into a cross and can be used to select the applicable node(s) that will make up the file name of the image.

    In this example, we will use the following:

    • FIELD_CustQuotationTrans_ItemId

    • LABEL_InventDim_InventColorId

    • LABEL_InventDim_InventSizeId

    1. The vertical red box in the following image contains three Image Rearrange blocks stacked on top of each other. Click and drag to create a box the same size as the purple box in the image to select the three Image Rearrange blocks.

    1. Once selected, right-click and a menu will appear. Select Merge Output.

    1. The three Image Rearrange blocks will be merged into a single block. Right-click Rearrange, and select Object.

    1. Ensure that the Image Objects are arranged in the proper order to match the file name for the image. In the purple box, a value for the Input Object (values in the red box for Object name) is assigned to each object for easier readability, as shown in the following image:

    1. Add the JobInfos that were created earlier using the File Path information. To do this, click Add, select JobInfo for Object type, type in the name of the appropriate JobInfos, and finally use the name of the JobInfo to be the Input Object (Object name).

    1. The order of the Objects should mimic the File Path location with the image. You can adjust the objects with the Move Up and Move Down buttons.

    1. Adjust the settings in the position with your desired values and click OK.

    1. Move the image to the desired location.

    Add Rearrange Spacing

    Adjusting the spacing between the rearranges in the pattern can improve their readability and presentation. To adjust this spacing, implement the following steps:

    1. Double-click Pattern to open the Pattern Properties (1), open the Output tab (2), and adjust the Progress (3) to the desired spacing amount between each object. In this example, we will use 12.0mm.

    1. Click OK in Pattern Properties, navigate to the First Page, and check if the spacing is to your liking. To see the images you may have to run JavaScript. This can be done from the following two methods: clicking Shift + F5 on your keyboard, or in the top Menu, clicking View > Run Javascript.

    1. Click the Preview button on the top Toolbar to see what the output of the Form will look like.


    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.