Show/Hide Toolbars

Jim2® Business Engine Help File

This example explains how to add an image to a stock record or a quote.

 

warning1

System reports should never be modified – make a copy of the existing system report and make changes to that copy. This ensures that reports don't become broken during upgrades. A warning will pop to screen that system reports cannot be edited.

 

reportwarning

1.Add the image that is one of these specific sizes (in pixels): Image16x16, Image32x32, Image128x128.

docusage

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

scriptingengine

Go to the Stock folder, then highlight Stock Record and click Copy From Existing. Rename the file to Stock Record Copy.

copyscript

3.In the Stock Script, after the object open command, enter HookImagesJITPipeline(ppStock, Stock, 'Image32x32') or contact Happen Business (support@happen.biz) to obtain this script.

hookimages

Click Compile on the ribbon, then Save.

4.In Report Designer go to the Stock folder, select the Stock sub-folder and highlight Stock Record. Click Copy from Existing on the ribbon.

stockrecord1

5.Right click on the report to open Report Properties, and change the ScriptName to Stock Record Copy.

stockrecordcopy

6.Open the report.

warning1

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

 

untickvisible

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

addimagetoreport

 

Quality

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

 

heightwidth

 

Height and width equal 32x32px in millimetres (in this case 8.467 mm).

 

Right click on the image and ensure that both Stretch and Autosize are un-ticked.

 

stretchoff

 

In the stock record, go to the Documents tab, select Link Existing and choose the image.

 

stockimage

 

On the Report menu, select Stock Record Copy and preview it to see the results.

 

imageonreport

 

Info

To add images to a quote in Report Designer, include the word Quote: HookImagesJITPipeline(ppQuoteStock, Stock, 'Image32x32')  

 

If using different images, 'Image32x32' would be 'Image128x128', etc. depending on which size image is chosen.

 

How to

Add a Signable Report for Jim2 Mobile

Add Logo to Stick Report

Add Text to Reports

Change Sticker Report Size

Display Company Logo In Reports

Export a Report

Import a Report

Locate Reports to Export

Make a Report Inactive

Open a Report for Redesign

Set up Back of Page Text on Invoice

 

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