Rounding in Crystal XI

Post Author: DAndre10
CA Forum: General
I'm using the following function to determine a person's age:
round(({calcdata.dob},{calcdata.dodec})/360,3)
I am rounding the result to three decimal places, but does anyone know of any other rounding features available in Crystal?  I would like to round the function to the nearest month.  Thanks.

Post Author: V361
CA Forum: General
Round (x)
Round (x, #places)
x is a Number or Currency to be rounded off.
#places is a whole number indicating the number of decimal places x is to be rounded off to.
Round rounds to the nearest whole number if the #places argument is excluded. If the value to the right of the decimal point is .499 or below, the program rounds to the next lowest number. If the value to the right of the decimal point is .5 or above, it rounds to the next highest number.
If the #places argument is used, the value in x is rounded to the nearest decimal place indicated by #places. Specifying #places as 0 works identical to leaving the #places argument off. You can also specify a negative number for #places; the number will be rounded to the nearest tenth (.1), hundredth (.01), or thousandth (.001), and so on.

Similar Messages

  • "Server Busy" error in Crystal Reports XI when using date picker

    Hi,
    I have come across an issue whereby I get a error pop up when using the date picker to select a date parameter as I run a report from within Crystal Report XI on a particular PC. While I am able to type in the date using the yyyy-mm-dd format, selecting the date picker displays an error message titled "Server Error" stating that the program is not responding and giving options "Switch To" and "Retry". Selecting either button displays the same error message and need to kill the application from the Task Manager to restart.
    I have run the same report from other PCs (including using the date picker to pick a date parameter) without the error popping up. All of the PCs have the same version of the application.
    Has anyone come across this and how were you able to resolve it?

    yes test is a formula that i used to calculate a difference
    that should work, but i would put () around the
    (if(remainder(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}),1)>0 and
    remainder(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}),1)<1) then
    truncate(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}))+1
    else ({ztrptActVol.CPT}*{tlkpBblMileage.CPT})
    rounding in crystal is a pain in the &&

  • Can only view BW technical name in Crystal Reports

    I am trying to report in Crystal against a BW query with 2 key figure structures. (i.e. rows & column)
    If we connect using the recommended BW MDX Query driver the 2nd structure (row) returns as a single flat field (as expected)
    In order to get round this I have tried connecting using the BW Query driver. This actually returns the above structure as separate fields. Perfect.
    Unfortunately the 1st structure (column from the BW Query) only returns the concatenated technical field name in the field explorer, making it difficult to read. I have changed the view in the Database Options to description but this does nothing.
    Any suggestions on how to bring through the field descriptions from BW?
    For info I am using:
    Crystal Reports 2008 SP3
    SAP BO Integration Kit XI SP3
    BW 7.1 SP5 enhancement pack 1

    Hi,
    the recommended approach is the BW MDX Driver and it works as you described it yourself.
    the BW Query Driver has already been deprecated
    Ingo

  • Viewing Crystal 2008 ActiveX  on Access 2007 forms

    Ok, i am a little confused as there seems to be a some doubt whether Crystal 2008 ActiveX can be used on Access forms. Another thread even has a reply that mentions that the ActiveX control is no longer included in Crystal Reports 2008..... Take a look at this, you can clearly see i have embedded the 2008 ActiveX control onto an Access form. link:[http://www.moktar.pwp.blueyonder.co.uk/AX.JPG]
    I have just installed 2008 and will get round to looking at this, however in my brief look, i couldnt see the run time library for 2008. By all accounts you can freely distribute the run time files for Crystal Reports 2008 as MSI or exe packages to your clients. I hope this is the case and i can get the ActiveX working.
    If anyone has some information on this subject i will welcome reading it.
    This is how its used to be done;
    1) Open the Access form in design view.
    2) Click on Add Tool button on the toolbar.
    3) Select Crystal Reports ActiveX toolbar control from the list of controls.
    4) Place the control on the form.
    5) Click on the View Code toolbar button to open the code for the form
    6) Choose u2018Referencesu2019 from the u2018Toolsu2019 menu
    7) Select u2018Crystal Reports ActiveX Design and Runtime Library 11.Xu2019 from the list of references and add to the project.
    8) On the Form_Load() event, please use the code given below to pass the report to the viewer:
    Dim crReport as CRAXDRT.Report
    Dim crApplication as New CRAXDRT.Application
    u2018 Use the appropriate path for the report
    Set crReport = crApplication.OpenReport(u201CC:\Report1.rptu201D)
    u2018 ReportSource property and ViewReport method will not be displayed on the viewer control
    CrystalActiveXReportViewer0.ReportSource = crReport
    CrystalActiveXReportViewer0.ViewReport
    'Hey Presto, the Crystal control on the Access form is now displaying a report. However, you had the age old issue of distributing the runtime files to clients that dont have crystal reports installed, and even more so of an issue, as this is Access and no method of doing it. I was hoping that 2008 with its MSI and EXE versions of the runtime files would solve this age old problem.
    Thanks
    Simon.

    Hello Simon,
    The RDC was retired after Crystal Reports XI R2 and no longer exists in CR 2008.
    The viewer control you are seeing is not meant for RDC applications.
    You will need to move to Java or .NET if you plan on using CR 2008.
    Best Regards,
    Jason

  • Please help with my crystal reports server 2008 trial setup

    Firstly, if this is in the wrong section feel free to move it. I find this forum is to big to find the information i need, in fact trying to find anything i need on this website is almost impossible. So far not impressed with SAP at all! we download a trial and when we have problems nobody can support us and we have to post in the forums for answers, which i find disgracefull to be honest. So this post is my last attempt of finding the answers to my problems or we are going to forget crystal reports server for good! I was also told that if i wanted help setting this up then i would have to pay, thats not how things usually go when we download a trial of any software!
    Anyway, rant over!!
    Right, we have windows server 2008 and have installed crystal reports server 2008. So far all i have managed to get working is the reports themselves which run and schedule fine. The dashboard and business views are so confusing i just dont get it at all, the manuals dont help either becuase they are rubbish basically. But my first problem is trying to get windows AD authentication working! easier said than done. I have spent 4 days trying to get it working but nothing is happening. this is what i have done so far
    Set up all the options in the CMC to enable AD authentication, mapped a few groups one of which i am a member of.
    Then i setup the krb5.ini file like below (removed my server name and domain name)
    [libdefaults]
        default_realm = DOMAIN.CO.UK
        dns_lookup_kdc = true
        dns_lookup_realm = true
        udp_preference_limit = 1
    [realms]
    DOMAIN.CO.UK = {
        kdc = DC.CO.UK
        default_domain = DOMAIN.CO.UK
    i also have that other file bscLogin which looks like this...
    com.businessobjects.security.jgss.initiate {
    com.sun.security.auth.module.Krb5LoginModule required;
    The server inteligence agent has been set to use the same username as i specified in the CMC which is also the service principal name and the administartion name
    i have set the web config file to use SecWINAD as default, i have also set it to give the option of enterprise, win ad etc in a drop down list
    i have gone round in circles for days following the instructions, and nothing is happening
    Also i dont see any usernames within the groups i have mapped , am i supposed to see any? am i supposed to add them manually?? if so, whats the point in that?
    So now everytime i try to log in i get this error message
    Account Information Not Recognized: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)
    There is also another error message i get, which isnt coming up right now but it says somthing along the lines of could not authenticate at this time (FWM 00005)
    i fail to see what im doing wrong. I shoudl also point out that the username i am using for everything is our own network admin password!
    any ideas on things to check before we give up with this all together?

    Hi Roberto,
    With the changes when SAP took over BusinessObjects the support packaging also changed. It's the way it is now but we are moving to and giving as much options as we can. SAP works on the Self Serve practice. the info is available but you have to find it, which is another thing we are working on to improve for BOE/CRS.
    Best place to start is in the CMS link off the start menu, You'll find the Admin Guide and Setup/Configuration Guides. You can also find all of the latest info and updates to those guides from help.sap.com then click on the SAP BusinessObjects tab along the top and then on the left click on All Products and then filter on your version.
    Once the Firewalls and Domains and your CRS Server is added to the Trusted Domains and ports opened to allow CRS to talk to the DNS Server CRS will begin to load all of the users into it's User Mappings. You still have to add each user or Group of Users but they will be available. Documents does describe how to....
    Once you have the Admin Guide search on Security and it explains in details how to set up and which ports need to be opened etc.
    Thank you
    Don

  • Trying to change the data source for a Crystal Report.

    <p>The method below represents my best attempt to programatically change the data source of a Crystal Report. The goal is to have a routine that will update the data source for reports after they have been distributed to production servers. So far I have not been successful in saving the report back to the CMS. No exceptions are thrown, but when I view the Database Configuration of the report in the CMC nothing has changed.
    </p>
    <p>
    Am I missing a step, or is there another way to accomplish this?
    </p>
    <p>
    Thank you.
    </p>
    <hr />
    <pre>
    private void test(String reportName)
       throws SDKException, ReportSDKException, java.io.IOException
       IInfoObjects newInfoObjects;
       IInfoObject reportObj;
       ReportClientDocument clientDoc = new ReportClientDocument();
       DatabaseController dc;
       PropertyBag pBag;
       PropertyBag logonProps;
       ConnectionInfo newConInfo;
       ConnectionInfo oldConInfo;
       ConnectionInfos conInfos;
       int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
       Fields connFields = null;
       String queryStr = "Select * From CI_INFOOBJECTS " +
          "Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
       newInfoObjects = getCms().executeQuery(queryStr);
       if(newInfoObjects.size() > 0)
          reportObj = (IInfoObject)newInfoObjects.get(0);
          try
             clientDoc = getCms().getReportAppFactory().openDocument(
                reportObj
                , OpenReportOptions._refreshRepositoryObjects
                , java.util.Locale.US);
             dc = clientDoc.getDatabaseController();
             conInfos = dc.getConnectionInfos(null);
             for(int i = 0; i < conInfos.size(); ++i)
                oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
                newConInfo = (ConnectionInfo)oldConInfo.clone(true);
                pBag = newConInfo.getAttributes();
                pBag.putStringValue("QE_ServerDescription", "alio");
                logonProps = new PropertyBag();
                logonProps.putStringValue("Trusted_Connection", "false");
                logonProps.putStringValue("Server", "alio");
                pBag.put("QE_LogonProperties", logonProps);
                newConInfo.setUserName("admin");
                newConInfo.setPassword("password");
                dc.replaceConnection(
                   oldConInfo
                   , newConInfo
                   , connFields
                   , connOptions);
          catch(ReportSDKServerException Ex)
             String msg = "A server error occured while processing the " + reportObj.getKind()
                + " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
             Utility.errorOut(msg, Ex);
          catch(Exception Ex)
             String msg = "An error occured while processing the " + reportObj.getKind()
                + " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
             Utility.errorOut(msg, Ex);
          finally
             clientDoc.save();
             getCms().commitToInfoStore(newInfoObjects);
             clientDoc.close();
    </pre>
    Edited by: Mark Young on Sep 10, 2009 2:16 PM

    <style type="text/css">
    /<![CDATA[/
        body
            font-size: 1.125em;
              font-family: helvetica,arial,"sans-serif";
          .code{font-family: "courier new",courier,mono,monospace}
          .bi{font-style: italic; font-weight: bold;}
    /]]>/
    </style>
    <p>Justin,</p>
    <p>
    Thank you for the reply. Time constraints have not allowed me to post back to this tread
    till now. I will try your suggestion. My assumption is that <i>Save the report back to the
    info store</i> refers to <span class="code">IInfoStore.commit(IInfoObjects)</span>.
    </p>
    <p>
    I'm afraid that I do not understand why I don't want to change the report client document,
    or why <i>successfully exporting the report with the new login/password</i> is not what I
    want to do. Any explanation on that statement would be appreciated.
    </p>
    <p>
    I did find a way to accomplish my goal. It involved adding the SSOKEY property to the
    logon property bag. Below you'll see my revised code which modifies the report logon and
    server. I have no idea what
    this does, and SAP support has not been able to tell me why it works. However, what I
    discovered is that if I changed the report option, <b>Database Configuration -> When
    viewing report:</b>, in the CMS to <span class="bi">Use same database logon as when report
    is run</span> from <span class="bi">Prompt the user for database logon</span>, then the
    SSOKEY property had been added to the logon property bag having an empty string as its
    value. This allowed me to successfullyupdate and save the modified logon back to the CMS.
    </p>
    <p>
    So I took a chance and added code to always add the SSOKEY property with an empty string
    as its value, and I could then successfully modify and save the report's logon info
    and server. Again, I don't know what this means, but it has worked so far. If anyone has
    some insight or comments, either are welcome. Thank you in advance.
    </p>
    <br />
    <hr />
    <pre>
    private void changeDataSourceOfAWFCrystalReports()
       throws SDKException, ReportSDKException, java.io.IOException
       IInfoObjects newInfoObjects = null;
       IInfoObject reportObj = null;
       IReport curReport = null;
       ReportClientDocument clientDoc = new ReportClientDocument();
       DatabaseController dbController;
       PropertyBag pBag;
       PropertyBag logonProps;
       ConnectionInfo newConInfo;
       ConnectionInfo oldConInfo;
       ConnectionInfos conInfos;
       int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
       Fields connFields = null;
       String outputStr;
       int numOfReports;
       int numOfQueryPages;
       double progressIncrementPerPage = 30;
       int progressIncrementPerReport = 0;
       // Path query to reports is in a .properties file.
       String queryStr = getAppSettingsFile().getWscAwfCrystalReportPathQuery();
       try
          // Executes IInfoStore.getPageingQuery() and generates a list of queries.
          getCms().setPathQueryQueries(queryStr, 100);
          numOfQueryPages = 0;
          // Gets a List&lt;String&gt; of the IPageResult returned from IInfoStore.getPageingQuery().
          if(getCms().getPathQueryQueries() != null)
             numOfQueryPages = getCms().getPathQueryQueries().size();
          if(numOfQueryPages &gt; 0)
             // Use 30% of progress bar for the following loop.
             progressIncrementPerPage = Math.floor(30.0/(double)numOfQueryPages);
          for(int queryPageIndex = 0; queryPageIndex &lt; numOfQueryPages; ++queryPageIndex)
             // Gets the IInfoObjects returned from the current page query
             newInfoObjects = getCms().getPathQueryResultSetPage(queryPageIndex);
             numOfReports = newInfoObjects.size();
             if(newInfoObjects != null && numOfReports &gt; 0)
                progressIncrementPerReport =
                   Math.round((float)Math.floor(progressIncrementPerPage/(double)numOfReports));
                for(int reportIndex = 0; reportIndex &lt; numOfReports; ++reportIndex)
                   reportObj = (IInfoObject)newInfoObjects.get(reportIndex);
                   curReport = (IReport)reportObj;
                   clientDoc = getCms().getReportAppFactory().openDocument(
                      reportObj
                      , OpenReportOptions._refreshRepositoryObjects
                      , java.util.Locale.US);
                   dbController = clientDoc.getDatabaseController();
                   conInfos = dbController.getConnectionInfos(null);
                   for(int conInfosIndex = 0; conInfosIndex &lt; conInfos.size(); ++conInfosIndex)
                      oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
                      newConInfo = (ConnectionInfo)oldConInfo.clone(true);
                      pBag = newConInfo.getAttributes();
                      pBag.putStringValue(
                         "QE_ServerDescription"
                         ,getConfigFile().getDBDataSourceConnections());
                      logonProps = new PropertyBag();
                      logonProps.putStringValue("Trusted_Connection", "false");
                      <b>logonProps.putStringValue("SSOKEY", "");</b>
                      logonProps.putStringValue(
                         "Server"
                         ,getConfigFile().getDBDataSourceConnections());
                      pBag.put("QE_LogonProperties", logonProps);
                      newConInfo.setUserName(getConfigFile().getUNVConnectionUserName());
                      newConInfo.setPassword(getConfigFile().getUNVConnectionPasswordDecrypted());
                      dbController.replaceConnection(
                         oldConInfo
                         , newConInfo
                         , connFields
                         , connOptions);
                      newConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
                   } // end for on conInfosIndex
                   clientDoc.save();
                } // end for on reportIndex
             } // end if on newInfoObjects
          } // end for on queryPageIndex
       } // end try
       catch(ReportSDKServerException Ex)
          // handle...
       catch(Exception Ex)
          // handle...
       finally
          getCms().commitToInfoStore(newInfoObjects);
          if(clientDoc != null)
             clientDoc.close();
    </pre>

  • Key instead of Text in Results Object in Crystal Reports For Enterprise

    Hi All
    I recently developed a report in Crystal Reports for Enterprise and at some point afterwards the text description of the hierarchy used in the report was changed.  The Key remained the same, however this caused the report to crash.  The solution was to click Edit Query Option in the Results Objects and simply come out without changing anything.  This refreshed the results object pane and the report ran as normal.   I work in an environment where the text of hierarchies is liable to change frequently and without notice and it will be unfeasible for me to constantly refresh the results object every time a change to a hierarchy is made.  Therefore is there a way to define in CRE to use the Hierarchy key instead of the text as this is less likely to altered?
    Many Thanks in advance
    Neil

    Excuse me I have my terminologies mixed up, what I mean is the name of the characteristic used in the report.  An example would be a characteristic called with the text of "Material" and a key of "0MATERIAL", if I were to change the text description to "MAT" and the key where to remain the same.  This would cause crystal report to error because it expecting the Characteristic name to be "Material".  Is there a setting or something in CRE to have it default to the key only so if the text of a characteristic or even a key figure for that matter where changed there would be no impact to the Crystal report.
    I hope this makes more sense this time round
    Thanks
    Neil

  • Box with rounded corners displays as rectangle in Web Browser

    I am using the box control (IBoxObject) in my Crystal Reports with rounded corners. However the box displays as a rectangle with square corners when viewed in a web browser. I have tried this in IE 7.0.5730.13, Firefox 3.0.3 and Chrome 0.2.149.30 all give the same problem.
    The interesting thing is that the boxes display correctly at design time and when exported to PDF, but they wonu2019t display correctly in IE/Firefox/Chrome. Here are the specific settings for the box:
                    CornerEllipseHieght = 375
                    CornerEllipseWidth = 375
                    Crystal Reports Version 10.5.3700.0
    I have also attached an image to try and clarify the problem.
    [Picture showing Box at design time, in a Web browser and when exported to PDF|http://i38.tinypic.com/10p6k1v.jpg]
    Thanks in advance for any help with this issue.
    -John

    Thank you Ted, this was my take on the problem but it is good to have a confirmation.
    There are CSS (HTML) solutions for creating boxes with rounded corners, such as [SpiffyBox|http://www.spiffybox.com/] and [CSS Rounded Box Generator|http://www.neuroticweb.com/recursos/css-rounded-box/index.php?idioma=en] and many more that can be found using [Google|http://www.google.com/search?hl=en&q=cssboxeswithroundedcorners&btnG=Google+Search&meta=].
    Do you know of any plans to support rounded corners in the future?
    Thanks for your help!
    John

  • Any way to apply effects (warp, crystal, wrinkle etc) evenly to symetric geometric shapes?

    Hi all,
    Just wondering if anyone knows if there is a way to evenly apply a warp, wrinkle, crystal effect/tool to a symetric shape like a circle and other geometric shapes???
    Im I could probably cut the shape into parts and flip them over so that they look like they join all up then apply the effect to the one object which then evenly effects the others, actually thinking about it I'm probably starting to creep into keiloscope design.
    Just wondering how other go about it? I've used the brush technique where you make a brush then apply that brush to the circle to make different even effects, are there other ways of going about it???
    Any help would be great

    Raptor,
    Just wondering if anyone knows if there is a way to evenly apply a warp ... to a ... circle ... ???
    You might end up with, a circle.
    Joking aside, in many cases the most efficient way is probably to apply them to partial shapes and then combine; especially in connexion with kaleidoscopic shapes, rotation, either round a common centre or of pairs, may have a place. And symbols may be your friends.

  • Rounding up to a particular decimal place

    Hi,
    I'm bringing a field into my report that uses up to eight decimal places.  I'm tasked with rounding things up to the fifth decimal.  Rather than rounding when the number is five or higher, it should always round up if it is above one.
    So for example:
    2.03827893 rounds up to 2.03828000
    11.40032180 rounds up to 11.40033000
    Any ideas on the best approach for achieving this within a Crystal formula?
    Any help would be greatly appreciated.
    Thank you.

    Hi Bob,
    Right click on the field and select "Format Field"
    In "Number" tab, select "Custom Style" then click on "Customize"
    In the Roundig box you can select the Rounding type.
    --Praveen G

  • Rounding to nearest half

    Using Crystal 2008 Dev
    Question on rounding,
    I have a formula that displays my running total number, I need to format the 1st decimal.  Basically if I have 2.3 I need that to round up to 2.5, or if I have 2.2 I want this to round down to 2.0.  I have tried many different ways and can't figure out how to do this.
    Any Ideas?
    Thanks,
    Glenn

    Glenn,
    Try using a formula similar to the following;
    numbervar r:= - truncate();
    if r <= .2
    then
    truncate()
    else if r > .2 and r <= .7
    then
    truncate() + .5
    else
    truncate() + 1

  • Formula Field incorrectly rounded when run on Enterprise Reports, OK in report

    Post Author: beckybear
    CA Forum: General
    We have a report in Crystal Reports 9.  There is a forumla field that has a custom formatting applied to display 2 decimal places.  It works fine when opening the report and running it.  However, when it's uploaded to the enterprise reports server (also version 9) and run from there, it rounds the numbers to have no decimal places.  Any idea what could be going on here?

    Sorry about not including Screenshots, here are a few:
    - Try setting the Formviewer Zoom to page width and resizing the window, at some point the "n" from "dürfen" and the the dot at the end of the sentence should disappear:
    - Shots from the full Report (here "Stundensatz" becomes "Stundens", "von" disappears completely: the second sentence is OK ) - this shows up without manipulating the zoom:
    In the Viewer with the Error:
    When I print this from the Viewer I get:
    When I print directly without the Viewer I get:
    - When I export the Report ( does not matter if rpt or PDF, from the viewer or directly ) the error does not show up.
    - The Problem with the "no printer" option (in my case) was it took a long time with it disabled, not enabled.

  • Strange number rounding problem

    I am using CR 8.5 and I have a number field inserted into the detail section of my report.
    Although rounding is set to 0.001 in the number format, the field displays rounded to the nearest whole number (e.g. 11.235 is displayed as 11.000). I have checked the field in the underlying tables and inserted the same field into another report without any problems.
    I've used different number formats in hundreds of reports without any problems, the only difference here is that the report was set-up by another user on another PC (but using the same version of Crystal).
    I suspect that rewriting the report from scratch would solve the problem, but I'd rather avoid this.
    Any suggestions?

    Hi
    Have you tried this:
    1. Right click on the field -> Format field -> Customize -> Rounding -> select the format that is required.
    Hope it helps!!!
    Regards
    Sourashree

  • Error in upgrade Crystal Reports for Visual Studio 2010 to SP1

    During the installation of SP1 of Crystal Reports for Visual Studio 2010 (RTM was already installed) I got an error message saying:
    Error 2753. The file "agent.exe.6ED28686_7B19_420C_B255_5B6C1BD2C705" is not marked for installation.
    After a rerun of the setup program (choosing reinstall) the message did not re-appear.
    It happens on Windows 7 x64 with Visual Studio 2010 SP1
    Is this a bug in the installation or an "undocumented feature"?
    Regards,
    Adri

    Hi Adri,
    I had that error once and one other poster also had it. Like you I just re-installed and no error on the second round.
    I believe it was some Windows Process had the file locked for some reason. It's not a bug or "undocumented feature" it's a Windows OS thingy....
    Before uninstalling anything it may be a recommendation to reboot first and not load anything that may be locking dependencies.
    How many times have you seen this?
    Thank you
    Don

  • Displaying long numbers in crystal

    How can I display a number in Crystal that is 18 digits long without having it automatically get converted to scientific notation?

    There's two factors at play here. 
    One is that, internally, the Crystal Reports engine uses double-precision floating point to represent Number type.  This is what you observe as the behavior similar to Excel, that does the same thing.  This is a value-issue, that's worked around by changing the returned type to string rather than number on the DB-side.
    The other is that the Crystal Reports engine has restricted means for displaying the numeric values - the "Format" specified for a visible field that contains a Number value.  This is a user-visible-formatting-issue.
    You're not concerned with the former, but you're encountering the latter.
    Crystal Number formatting is based on decimal/rounding/separator setting found in the Format Editor.  It just so happens that if you have a value that has magnitude larger than that expressible in the fixed format, the engine automatically converts to scientific notation (if smaller in magnitude, it rounds to zero). 
    There's no way around that, other than using formulas to break apart the numeric value into it's billlion/million/thousands/etc parts and converting to string yourself.
    Sincerely,
    Ted Ueda

Maybe you are looking for