<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Crystal Reports ToText Function in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660053#M3452599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct format would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToText(Year(CurrentDate),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 = no decimal places when converting a number to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viewer is doing what it should, Report Designer may have a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 20:18:52 GMT</pubDate>
    <dc:creator>former_member11696</dc:creator>
    <dc:date>2013-08-22T20:18:52Z</dc:date>
    <item>
      <title>Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaq-p/9660052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a report that takes the current year and converts it to text using the ToText function e.g. ToText(Year(CurrentDate)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Crystal this returns 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the same report using the .NET runtimes for Crystal 2011, the same formula return 2,013.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the ToText function has extra parameters to handle formatting, however, I expect the results to be consistent between Crystal Reports and runtimes. Is there an over-ride for the runtimes (registry setting perhaps) that can be used to make the results formatted like Crystal Reports?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaq-p/9660052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T18:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660053#M3452599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct format would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToText(Year(CurrentDate),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 = no decimal places when converting a number to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viewer is doing what it should, Report Designer may have a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 20:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660053#M3452599</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2013-08-22T20:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660054#M3452600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToText(Year(CurrentDate),0) will give you "2,013".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;ToText(Year(CurrentDate),0,"") this will give you "2013"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 10:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660054#M3452600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-11T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660055#M3452601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using Crystal reports to produce positive pay file and we have a formula  &lt;/P&gt;&lt;P&gt;totext(month({@Convert Date}),0)&lt;/P&gt;&lt;P&gt;that extracts month from the date.  Formula is working fine for months that are two digits from October through December but for January through September , instead of  extracting 01 for month for January, the result only shows 1 .&lt;/P&gt;&lt;P&gt;Is there a better formula that I can use so that the month on the positive pay crystal report to appear as 01,02 for January, February and 10,11,12  for October through December.&lt;/P&gt;&lt;P&gt;Appreciate any input.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Aarthi&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 19:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660055#M3452601</guid>
      <dc:creator>aarthir</dc:creator>
      <dc:date>2020-02-22T19:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660056#M3452602</link>
      <description>&lt;P&gt;Sure. Use this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ToText(CurrentDate, "MM")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And in a similar way, this is a slightly simpler solution for the original year question:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ToText(CurrentDate, "yyyy")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Feb 2020 22:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660056#M3452602</guid>
      <dc:creator>ido_millet</dc:creator>
      <dc:date>2020-02-22T22:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports ToText Function</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660057#M3452603</link>
      <description>&lt;P&gt;Thanks so much. It worked!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 05:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-totext-function/qaa-p/9660057#M3452603</guid>
      <dc:creator>aarthir</dc:creator>
      <dc:date>2020-03-01T05:50:24Z</dc:date>
    </item>
  </channel>
</rss>

