
This is a reposting of an article I originally wrote on my Developing for Dynamics GP blog.
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:
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.
David
This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on http://www.winthropdc.com/blog.
PingBack from http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/company-logos-on-reports.aspx
Posting from About Dynamics, Development and Life (Jivtesh Singh’s Blog)
http://www.jivtesh.com/2008/07/conditional-logo-example-from-david.html
Posting from Dynamics GP Blogster
http://dynamicsgpblogster.blogspot.com/2008/07/david-musgraves-conditional-logos.html
Posting from DynamicAccounting.net
http://msdynamicsgp.blogspot.com/2008/07/conditional-logs-in-report-writer.html