﻿<?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 PreZero a Check Number on a Supplier Check / 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:29 GMT</lastBuildDate><ttl>20</ttl><item><title>How to PreZero a Check Number on a Supplier Check</title><link>http://www.interprisesuitecommunity.com/Topic65-5-1.aspx</link><description>&lt;DIV&gt;&lt;DIV&gt;Get a reference to the label containing the field value, convert it to an integer, and replace the label text with the formatted number.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Put this in the OnBeforePrint script:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) &lt;BR&gt;{&lt;BR&gt;   // Get typed reference to label&lt;BR&gt;   DevExpress.XtraReports.UI.XRLabel checkNo = sender as DevExpress.XtraReports.UI.XRLabel;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;   // If the check number isn't null or empty&lt;BR&gt;   if (!string.IsNullOrEmpty(checkNo.Text))&lt;BR&gt;   {&lt;BR&gt;      // Convert to integer and format&lt;BR&gt;      checkNo.Text = string.Format("{0:000000}", int.Parse(checkNo.Text));&lt;BR&gt;   }&lt;/DIV&gt;&lt;DIV&gt;&lt;BR&gt;}&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><pubDate>Thu, 23 Apr 2009 10:50:48 GMT</pubDate><dc:creator>BJ Dimes</dc:creator></item></channel></rss>
