- Print
- PDF
Use Azure Storage Options to Add Images to a Dynamics 365 FO Report
This article will cover how to use Azure Storage to added images to a report in 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 File System storage instead of Azure, see:
Use File System storage options to add images to a Dynamics 365 FO report
In this example, we will cover how to complete Setup in Lasernet Form Editor if your images are stored in an alternative Azure Storage. This necessitates obtaining a connection string form from Azure, which will be established using the following steps:
The connection from the Lasernet Server must be set up through Azure Storage by setting the connection string. Open Form Editor > Form > Form Options.

Select Connections and then click the Add button.

Add the Connection Key (1) and then click Test Connection (2).

Once this connection has been established, click the JobInfo button (1) in the left-hand Toolbar, and select the node that you would like to make a JobInfo (2). In this example, the following nodes will be selected as JobInfos:
ImageStorage
ImageFolder
ImageExtension

Open the Azure Storage path with the images to be used.

On the Toolbar, click the arrow on the bottom-right of the Image icon and select Job > Azure Storage URL.

The cursor will turn into a cross. Use this to select the applicable node(s) that will make up the File Name for the image. In this example we will use the following:
FIELD_CustQuotationTrans_ItemId
LABEL_InventDim_InventColorId
LABEL_InventDim_InventSizeId
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.

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

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

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:

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).

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.

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

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:
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.

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.

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