473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to do formatting on numbers in Crystal Report?

123 100+
Hi,

I have designed one crystal report. I have one column in it, Gross Amt. When I run it, values are displayed in following format.

GrossAmt
---------------
10,000.65
1,000.85

Instead above format, I want to display in following format.
GrossAmt
---------------
10,000.65
01,000.85

How to do it? Kindly let me.
Thanks
May 24 '07 #1
1 1666
coolminded
137 100+
Hi,

I have designed one crystal report. I have one column in it, Gross Amt. When I run it, values are displayed in following format.

GrossAmt
---------------
10,000.65
1,000.85

Instead above format, I want to display in following format.
GrossAmt
---------------
10,000.65
01,000.85

How to do it? Kindly let me.
Thanks
hi shailja
for your problem, just use the function lpad()
for ex, if u need to make 1000.85 to 01000.85 then
the code for this is
lpad('1000.85','8','0)

it's out put will be
01000.85

8 means the no length of number,i,e.' 01000.85' and 0 means the number to be inserted in the front of the number.
May 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
1
by: Matthew Williams | last post by:
Hi, I've produced a Crystal Report in Crystal Reports.NET with rounded corner shaded boxes. When I send it directly to the Printer using PrintToPrinter() it is formated correctly. When I...
0
by: Zoury | last post by:
Hi there ! :O) I'm having a two strange behaviors with Crystal Report which seems to have the same cause.. All the fields used in the reports comes from some SQL Server views. *** 1st...
1
by: David Lozzi | last post by:
Howdy, I am using a Crystal Report viewer in my ASP.NET (using VB) page. The report is displayed and looks great EXCEPT that the width of the report exceedes the window and appears to be...
0
by: mmcd79 | last post by:
I am using .NET 2005 and the integrated Crystal Reporting Engine (v10.2). I don't know what in the world is happening but something isn't right. When I prevew my report in the designer,...
5
by: Carla | last post by:
I have Access 2000. I made a mailing list database and for the life of me can't remember how to format the zip code field so it will print on the label as xxxxx-xxxx. I have tried various - 9, #,...
1
by: Shailja | last post by:
Hi, How to do alignment of decimal point in Crystal Report? When I open the crystal report, numbers display in following manner: 100.16 10.16 Instead, if second number consists of 2 digits...
1
by: William LaMartin | last post by:
I am having trouble creating a report (not Crystal) where the data is displayed in three columns--think of mailing labels. I have done this with Microsoft Access Reports, Crystal Reports, but...
2
Pittaman
by: Pittaman | last post by:
Hello I am creating some crystal reports (for visual studio 2005) based on the content of certain .NET objects. I'm doing this in .NET 2.0. For one of them I'm using a Cross-table to summarize...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.