Solved

Problem with Crystal Reports Numbers Format

Posted on 2010-08-25
3
557 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A short film showing how OnPage and Connectwise integration works.

929 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

8 Experts available now in Live!

Get 1:1 Help Now