<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cogniza &#187; Technique</title>
	<atom:link href="http://cogniza.com/wordpress/tag/technique/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogniza.com/wordpress</link>
	<description>Business-Intelligence Specialists</description>
	<lastBuildDate>Mon, 15 Mar 2010 20:22:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Crystal Reports: Dynamic Images</title>
		<link>http://cogniza.com/wordpress/2010/03/15/crystal-reports-dynamic-images/</link>
		<comments>http://cogniza.com/wordpress/2010/03/15/crystal-reports-dynamic-images/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 20:22:31 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://cogniza.com/wordpress/?p=167</guid>
		<description><![CDATA[Use a conditional formula to dynamically change the location of a report&#8217;s image.

Add an image to the report (Insert &#124; Picture).  This image will act as a placeholder.  Ensure that the placeholder is the same size as the one that will be dynamically loaded, otherwise the image will be scaled.
Change the image&#8217;s Graphic Location:

right [...]]]></description>
			<content:encoded><![CDATA[<p>Use a conditional formula to dynamically change the location of a report&#8217;s image.<span id="more-167"></span></p>
<ol>
<li>Add an image to the report (Insert | Picture).  This image will act as a placeholder.  Ensure that the placeholder is the same size as the one that will be dynamically loaded, otherwise the image will be scaled.</li>
<li>Change the image&#8217;s Graphic Location:
<ul>
<li>right click image</li>
<li>select Format Graphic&#8230;</li>
<li>select Picture tab</li>
<li>click the conditional-formula button (looks like x+2)</li>
<li>set the formula&#8217;s text to the name of the formula or parameter field that will contain the image&#8217;s URL</li>
<li>save the formula and click the OK button</li>
</ul>
</li>
<li>Save the report</li>
</ol>
<h2>Download</h2>
<p><a href="http://cogniza.com/wordpress/wp-content/uploads/2010/03/Dynamic-Image.11.5.rpt_.zip">Crystal Report Dynamic Image Sample</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2010/03/15/crystal-reports-dynamic-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crystal Reports: Display a Message When Report Has No Data</title>
		<link>http://cogniza.com/wordpress/2007/08/28/crystal-reports-display-a-message-when-report-has-no-data/</link>
		<comments>http://cogniza.com/wordpress/2007/08/28/crystal-reports-display-a-message-when-report-has-no-data/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 16:47:04 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Business Objects Enterprise]]></category>
		<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Business Objects]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=98</guid>
		<description><![CDATA[Often it is desirable to display a message, such as 'No matching records', when a report does not contain data. Unfortunately, Crystal Reports does not have a function to easily identify this state.]]></description>
			<content:encoded><![CDATA[<p>Often it is desirable to display a message, such as &#8216;No matching records&#8217;, when a report does not contain data.  Unfortunately, Crystal Reports does not have a function to easily identify this state.</p>
<p><span id="more-98"></span></p>
<p>Fortunately, this functionality can be approximated by building a formula that manually counts the records.  This formula, excuted during the report&#8217;s &#8216;WhileReadingRecords&#8217; phase, will increment a Global variable.  To work correctly, this formula will need to reside in the report&#8217;s Details section.</p>
<p>To build a report that uses this functionality, follow these steps:</p>
<ol>
<li>Create a formula named &#8216;Records&#8217;.</li>
<li>Set the formula&#8217;s text to be:<br />
<code>//Excute this formula as records are read into the report<br />
WhileReadingRecords;<br />
//define a variable that is available throughout the 'main' report<br />
Global Numbervar Records;<br />
//increment the variable<br />
Records:=Records+1;<br />
</code></li>
<li>Place this field in the report&#8217;s Details section.  Suppress the field by checking &#8216;Suppress&#8217; check box on the Format Editor&#8217;s Common tab.</li>
<li>Create a new Page Header section by right-clicking the Page Header section and choose &#8216;Insert Section Below&#8217; from the context menu.</li>
<li>Right-click the newly-created Page Header and choose &#8216;Section Expert&#8230;&#8217; from the context menu.  Check the &#8216;Underlay Following Sections&#8217; checkbox.</li>
<li>Click the Conditional-Formula Editory button to the right of the &#8216;Suppress&#8217; checkbox.  Set the formula&#8217;s text to:<br />
<code>//If the field isn't null, suppress the section; the field will only be null when<br />
//the report does not contain data.<br />
Not(Isnull({@Records}))<br />
</code></li>
<li>Add a Text Object to the report containing the desired message.  Place the Text Object in the newly-created Page Header section.</li>
<li>Test the report.</li>
</ol>
<p><a href="/wordpress/wp-content/uploads/2007/08/usa.pdf" target="_new" class="attachmentlink">Report with Data</a></p>
<p><a href="/wordpress/wp-content/uploads/2007/08/united-states.pdf" target="_new" class="attachmentlink">Report without Data</a></p>
<p><a href="/wordpress/wp-content/uploads/2007/08/no-matching-records-template115.zip" class="attachmentlink">Sample Report</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2007/08/28/crystal-reports-display-a-message-when-report-has-no-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crystal Reports: Optional-Multi-Select Parameters</title>
		<link>http://cogniza.com/wordpress/2005/11/24/crystal-reports-optional-multi-select-parameters/</link>
		<comments>http://cogniza.com/wordpress/2005/11/24/crystal-reports-optional-multi-select-parameters/#comments</comments>
		<pubDate>Thu, 24 Nov 2005 16:55:56 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=29</guid>
		<description><![CDATA[This article demonstrates the use of optional multi-select parameters in Crystal Reports.]]></description>
			<content:encoded><![CDATA[<p>Most report designers are familiar with the parameter&#8217;s &#8216;Allow Multiple Values&#8217; option.  When enabled, this option allows a report&#8217;s user to select one or more values for a parameter at runtime.  The individual running the report could select one or more countries, for example.  Should the individual want to select all countries, he or she would need to add each country individually when the prompt is presented.  If there are a lot of countries, this could be a time-consuming task.  Fortunately, there is a better way.</p>
<p><span id="more-29"></span>To start, edit the multi-select parameter.  You may want to include instructions on how to use the parameter in the Prompting Text&#8211;something like &#8216;Select one or more countries.  Select &#8216;ALL&#8217; for all countries.&#8217;</p>
<p>Next, click the &#8216;Default Values&#8230;&#8217; button.  If the parameter is a string, type &#8216;ALL&#8217; in the &#8216;Select or enter value&#8217; text box, if the parameter is a number type -1.  Click the &#8216;&gt;&#8217; button to add the value to list of default values.</p>
<p>If the parameter is a number click the &#8216;Set Description&#8230;&#8217; button, enter &#8216;ALL&#8217; in the &#8216;Description&#8217; text box, then click &#8216;OK&#8217;.  If you want to hide the numeric values, select &#8216;Description&#8217; from the &#8216;Display&#8217; drop-down list.</p>
<p>In either case, use the up arrow at the top right corner of the &#8216;Default Values/Description&#8217; listbox to ensure that &#8216;ALL&#8217; is at the top of the list.  This will make it easier to select &#8216;ALL&#8217; when the report is run.  Click &#8216;OK&#8217; to exit the &#8216;Set Default Values&#8217; window, then click &#8216;OK&#8217; to exit the &#8216;Edit Parameter Field&#8217; window.</p>
<p>Next, open the report&#8217;s Record Selection Formula Editor.  If the {?Countries} parameter is a string, add the following text:<br />
<code><br />
(If {?Countries}&lt;&gt;'ALL' Then<br />
{Customer.Country} IN {?Countries}<br />
Else<br />
True)<br />
</code></p>
<p>If the {?Countries} parameter is a number,  add the following text:<br />
<code><br />
(If {?Countries}&lt;&gt;-1 Then<br />
{Customer.Country} IN {?Countries}<br />
Else<br />
True)<br />
</code></p>
<p>Essentially, if the parameter&#8217;s value isn&#8217;t ALL, then the filter is applied.  Otherwise, the filter is ignored.</p>
<p>When the report is run, the word &#8216;ALL&#8217; will be displayed first in the list of values for the parameter.  Clicking &#8216;Add&#8217; will set the parameter&#8217;s value to &#8216;ALL&#8217;.</p>
<h2>Summary</h2>
<p>In addition to making your report more flexible, this techniques will make it easier to deploy, manage and schedule your report in Crystal Enterprise.</p>
<h2>Samples</h2>
<p><a href="wordpress/wp-content/AdvancedParameters.10.rpt" title="Advanced Parameter Sample">Crystal Reports 10 &#8211; Advanced Parameter Sample</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2005/11/24/crystal-reports-optional-multi-select-parameters/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Crystal Report: Include Terms and Conditions on a Form Letter</title>
		<link>http://cogniza.com/wordpress/2005/11/23/crystal-report-include-terms-and-conditions-on-a-form-letter/</link>
		<comments>http://cogniza.com/wordpress/2005/11/23/crystal-report-include-terms-and-conditions-on-a-form-letter/#comments</comments>
		<pubDate>Wed, 23 Nov 2005 18:41:12 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=22</guid>
		<description><![CDATA[This article demonstrates how to add terms and conditions, in the form of an image, to the back side of a form letter.  The page numbering schema has been adjusted to only count the front side of letter.]]></description>
			<content:encoded><![CDATA[<p>In this sample, we will create a report that generates a form letter to each customer, with terms and conditions on the back side (represented as Cogniza&#8217;s logo).  Moreover, the page numbering will only count the front of each page.</p>
<p><span id="more-22"></span></p>
<h2>Instructions</h2>
<p>To get started, create a report using the Xtreme sample database.  Add the &#8216;Customer&#8217; table to the report.  Next, insert a group on the &#8216;Customer Name&#8217; field.  Finally, suppress the Report Header, Page Footer and Report Footer sections.</p>
<p>Right-click the group&#8217;s footer and select &#8216;Insert Section Below&#8217;.  This will create a section section immediately below the current section.  You should see two sections: Group Footer #1a (GF1a) and Group Footer #1a (GF1b).</p>
<h3>GH1</h3>
<p>Add a text object to this section, then add all relevant mailing-address fields to this text object.</p>
<p>Create a formula field named &#8216;PageNumberIncr&#8217;.  Add the following text to its formula text:</p>
<p><code><br />
WhilePrintingRecords;<br />
Numbervar nPage := nPage+1;<br />
</code></p>
<p>Add this field the group header section, then suppress it.  This formula will increment a page counter every time the group header section is create, which is once per customer.</p>
<h3>Details</h3>
<p>Add text object with the letter&#8217;s message.</p>
<h3>GF1a</h3>
<p>This setting will make this section act like the letter&#8217;s page footer.  Right-click the section and select Section Expert&#8230;  Check &#8216;Print at Bottom of Page&#8217;, then click &#8216;OK&#8217; to close the dialog window.</p>
<p>Create a formula field named &#8216;Page N of M&#8217;.  Add the following text to its formula text:</p>
<p><code><br />
//Use this field if you only want to count the front of each page<br />
WhilePrintingRecords;<br />
Numbervar nPage;<br />
"Page " &amp; ToText(nPage,0) &amp; " of " &amp; ToText(TotalPageCount/2,0)<br />
</code></p>
<p>Add this filed to the GF1a section, size it to be the width of the section, then click the &#8216;Align Center&#8217; toolbar button.</p>
<h3>GF1b</h3>
<p>This section will act as the back page of the form letter.  Resize the section to be nearly a full page in length&#8211;for starters, try 9.5&#8243;.  Next, insert an image or text object that contains your terms and conditions into this section.  Finally, right-click the section&#8217;s name and select Section Expert&#8230;  Check &#8216;New Page Before&#8217; and &#8216;New Page After&#8217;, then click &#8216;OK&#8217; to close the dialog windows.</p>
<h2>Summary</h2>
<p>If you don&#8217;t have access to a duplex printer, print the odd-numbered pages (the fronts) first, return these pages to the printer (making sure to orient the pages correctly), then print the even-number pages (the backs).</p>
<h2>Sample</h2>
<p><a href="/wordpress/wp-content/TermsAndConditionsFormLetter.10.rpt" title="Include Terms and Conditions on a Form Letter">Crystal Reports 10 &#8211; Include Terms and Conditions on a Form Letter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2005/11/23/crystal-report-include-terms-and-conditions-on-a-form-letter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
