Developing for Dynamics GP

by David Musgrave (Perth, WA, Australia) and the Microsoft Dynamics GP Developer Support Team (Fargo, ND, USA)

RW - Conditional Logos Example

RW - Conditional Logos Example

Rate This
  • Comments 4

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.

Attachment: Conditional Logos.zip
Comments Information

PLEASE READ BEFORE POSTING

Please only post comments relating to the topic of this page.

If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.

Leave a Comment
  • Please add 5 and 6 and type the answer here:
  • Post