RW – Conditional Logos Example

The following Report Writer example demonstrates how it is possible to show different logo images on a report based on a defined condition. 

The Report Writer was used to create a custom report which has two logos on it.  Then each logo covered with a string conditional calculated field, which has the background and foreground color set to white and the field mode of Hide When Empty.  Then the condition is added to either set the field to a character (I used period/full stop) or empty.  This causes the logo to be covered or exposed.  The second calculated field uses the reversed condition.

This example code can be used to show how the technique works. Also have a look at the posting Company Logos on Reports for more information on this subject.

NOTE: This technique works when the logos are in different locations on the page.

Please refer to the following Knowledge Base (KB) article when adding graphics to a report:

How to prevent the image quality of a graphic from being reduced when you print a graphic from Report Writer in Microsoft Dynamics GP (KB 854470) Secure Link

Example code for v8.0, v9.0 & v10.0 is attached at the bottom of the article.

Please see the “Installation Instructions.txt” file in each version’s archive for more information.


Skip to main content