<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : .Format Currency</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : .Format Currency]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:05:51 +0000</pubDate>
  <lastBuildDate>Fri, 10 Dec 2010 03:56:15 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17403</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[.Format Currency : You should set the properties...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=61759&amp;title=format-currency#61759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 17403<br /><strong>Posted:</strong> 10 December 2010 at 3:56am<br /><br />You should set the properties .Value for the unformatted value and the .Caption for the formatted value. <DIV>The .Format-Property excepts also VB-Formats like "$#,##0.00;$-#,##0.00"</DIV>]]>
   </description>
   <pubDate>Fri, 10 Dec 2010 03:56:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=61759&amp;title=format-currency#61759</guid>
  </item> 
  <item>
   <title><![CDATA[.Format Currency : Hi mar72vin. I prefer to do the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=61201&amp;title=format-currency#61201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17403<br /><strong>Posted:</strong> 29 October 2010 at 6:14am<br /><br />Hi mar72vin. I prefer to do the formatting on the Metrics in the BeforeDrawRow-event.<br><br>Metrics.Text =<i>string.Format("{0:0.00}",_value)</i><i>.<br><br></i>Then I leave the .value and .caption "untouched" and the groupFormulas are working fine<br>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 06:14:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=61201&amp;title=format-currency#61201</guid>
  </item> 
  <item>
   <title><![CDATA[.Format Currency : Thanks Aaron! Unfortunately I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60834&amp;title=format-currency#60834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4559">mar72vin</a><br /><strong>Subject:</strong> 17403<br /><strong>Posted:</strong> 12 October 2010 at 5:34pm<br /><br />Thanks Aaron! Unfortunately I already tried this and after reading the docs I realize why. <i>Only the "%s" type is supported with the Format method.&nbsp; This means that the Format method will only format strings and treats all numeric values as strings.<br><br></i>I am experimenting with converting my decimal to a string prior to adding it to the report with <i>string.Format("{0:0.00}",_value)</i><i>.<br><br></i>I would prefer to be able to supply the decimal value to the report control and allow it to do the formatting.<br><br>Strangely I have also noticed that when a format is applied the groupformulas SUMSUB does not work. Does this mean that I need to supply values for both the .Value and .Caption of each item so that the groupFormulas are working on an un-formatted value. Is there a better way to do this?<br>]]>
   </description>
   <pubDate>Tue, 12 Oct 2010 17:34:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60834&amp;title=format-currency#60834</guid>
  </item> 
  <item>
   <title><![CDATA[.Format Currency : Hi,  Try this:  .Format = &amp;#034;$...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60828&amp;title=format-currency#60828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17403<br /><strong>Posted:</strong> 12 October 2010 at 4:25pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Try this:</DIV><DIV><BR>&nbsp;&nbsp;&nbsp; .Format = "$ %.2f"</DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 12 Oct 2010 16:25:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60828&amp;title=format-currency#60828</guid>
  </item> 
  <item>
   <title><![CDATA[.Format Currency : Hi Guys,I am currently using (Item.Format...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60797&amp;title=format-currency#60797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4559">mar72vin</a><br /><strong>Subject:</strong> 17403<br /><strong>Posted:</strong> 11 October 2010 at 6:55pm<br /><br />Hi Guys,<br>I am currently using (Item.Format = "$ %s") to format my data as currency. This is fine except that my data is stored in a decimal value and the report control shows 4 0's. i.e. "$ 100.0000".<br><br>What format can I use to only show 2 decimal places?<br>]]>
   </description>
   <pubDate>Mon, 11 Oct 2010 18:55:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17403&amp;PID=60797&amp;title=format-currency#60797</guid>
  </item> 
 </channel>
</rss>