title: Padding a fixed number with leading zeros up to a fixed length
body: <p>In Crystal Report using Visual Studio 2010, I am trying a to create a formula for the following scenario:</p>
  
  <p>x = any number (Fixed number of 8 digits, cant be less or greater)</p>
  
  <p>If Length of X is less than 8, pad the required amount of 0's in the front to make its length 8.</p>
  
  <p>Eg: </p>
  
  <pre><code>X = 123
  Result of Formula should be 00000123
  
  X = 9
  Result of Formula should be 00000009
  </code></pre>
  
  <p>Any help will be appreciated.
  Thanks in advance.</p>