Show/Hide Toolbars

Jim2® Business Engine Help File

In this example, we will be using the image on a stock record. To add images that are linked to stock, or any other Jim2 object:

1.Add the document to the Jim2 object that has usage of one of these sizes (in pixels): Image16x16, Image32x32, Image128x128.

doc usage

2.On the ribbon go to Tools > Scripting Engine.

tools scripting engine

Select the Stock folder, then highlight Stock Record and select Copy From Existing. Rename the file to Stock Record Copy.

3.In Script Call function HookImagesHookImagesJITPipeline, eg. In Stock Script, after the object open command, enter HookImagesJITPipeline(ppStock, Stock, 'Image32x32') ; or contact Happen Business ( to obtain this script.


Choose the Compile icon in the ribbon, then click Save.

4.In Report Designer go to the Stock folder, select the Stock sub-folder and select Stock Record. Select the Copy from Existing icon and change the name to Stock Record - Copy. Right click on the report and change the ScriptName to Stock Record Copy.

stock record copy

It's important to not delete fields/objects within reports – simply select the field, right mouse-click and untick Visible or colour the information white.


untick visible

Place a DBImage into the report, and link to Image field as below.

add image to report

The picture size must be the same as the report image height and width (scaling unit is millimetres).


height width


Ensure that both Stretch and Autosize are unticked.


stretch off


In the stock record, go to the Documents tab, select Link Existing and choose the image you require. Then, on the Report menu, select Stock Record - Copy and preview it to see the results.


image on report



To add images to a quote, include the word Quote: HookImagesJITPipeline(ppQuoteStock, Stock, 'Image32x32') ; ('Image32x32' would be 'Image128x128', etc. depending on what image you choose).


Further information:

For more detailed information regarding Report Designer please refer to (copy and paste into a web browser).