﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Interprise Suite Community / Interprise Suite Community Forums / Reports  / How to Supress an Entire Band Based on a Field Value / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Interprise Suite Community</description><link>http://www.interprisesuitecommunity.com/</link><webMaster>forums@dimesoftinc.com</webMaster><lastBuildDate>Fri, 10 Feb 2012 17:45:12 GMT</lastBuildDate><ttl>20</ttl><item><title>How to Supress an Entire Band Based on a Field Value</title><link>http://www.interprisesuitecommunity.com/Topic67-5-1.aspx</link><description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Select the band you wish to hide, click on the scripts, and add the following logic in the following method:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) &lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;BR&gt;      // Get the gl amount&lt;BR&gt;      decimal glAmount = (decimal)GetCurrentColumnValue("GLAmount");&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV dir=ltr&gt;      // If the gl amount is zero, do not print the band&lt;BR&gt;      if (glAmount == 0)&lt;BR&gt;          e.Cancel = true;&lt;/DIV&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The example above simply shows that we dont want a particular band to be printed if the GLAmount field is zero. &lt;/P&gt;&lt;P&gt;Note: The GLAmount field will need to exist on the report in order for this to work. The GetCurrentColumnValue method will fail if the field doesnt exist. Even if you do not want to show the field, it needs to exist on the report. Simply mark this field as not visible and you are good to go.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><pubDate>Thu, 23 Apr 2009 11:01:17 GMT</pubDate><dc:creator>BJ Dimes</dc:creator></item></channel></rss>
