Solved

Problem with Crystal Reports Numbers Format

Posted on 2010-08-25
3
555 Views
Last Modified: 2012-05-10
I have a problems with a few reports. I recently upgraded from CE9 to CRS 2008 SP2.

In several of my reports I have a formula that converts to numbers to text and combines them. The formula looks like this:

ToText(Member#) & "-" & ToText(Account#)

to get and value such as 999999-100.

In Crystal Reports 2008, I set my number format to "(1123)" in the Options. The report appears correctly in Crystal Reports 2008.

When I schedule the report in Crystal Reports Server 2008 and export it, it sets the numbers format to "(1,123.00)" so my formula looks like "99,999.00-100.00".

This didn't happen with Crystal Enterprise 9. Can someone give me some guidance as to how I can fix this issue?

Thanks in advance!

Lee
0
Comment
Question by:leeii15
3 Comments
 
LVL 4

Accepted Solution

by:
Accpac_Attack earned 500 total points
ID: 33521691
Try:
ToText(Member#,"#######") & "-" & ToText(Account#,"#######")
0
 

Author Comment

by:leeii15
ID: 33522985
Thanks Accpac,

That fixes the formula. I actually just used, since the numbers expand past the initial #.

ToText(Member#,"#") & "-" & ToText(Account#,"#")

It would be nice if Crystal Reports Server 2008 was able to detect the field formats used in a report when saved from Crystal Reports. This worked without the formulas in Crystal Enterprise 9.

Another issue I found on this report was an issue with charts and group headers. If you are using a number on your chart axis it was displaying the number as 9,999.00 and the same for the Group Header. You actually have to create a group header and axis formula specifically converting the number to text with the formula above.

Thanks,

Lee
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 33536017
Another way is

ToText(Member#,0,'') & "-" & ToText(Account#,0,'')

mlmcc
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now