Solved

Problem with Crystal Reports Numbers Format

Posted on 2010-08-25
3
575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 101

Expert Comment

by:mlmcc
ID: 33536017
Another way is

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

mlmcc
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

719 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