?
Solved

Keeping leading zeros in a CSV extract from Crystal

Posted on 2005-04-11
3
Medium Priority
?
672 Views
Last Modified: 2011-09-20
Hi there
We are hoping to use Crystal Reports as an extract tool from a SQL database, and so far so good.  The problem I am having is, I have a varchar field that contains significant leading zeros and when I export that field to a CSV file, the zeros are dropped.  Is there a way in Crystal to preserve the zeros?  The preview crystal reports shows it but it gets dropped when the CSV file gets created....any help would be greatly appreciated.
thanks
Wendy
0
Comment
Question by:wendelina
1 Comment
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 13756473
Have you tried formatting the field as a TEXT field

ToText({DatabaseField}, "0000000000")

mlmcc
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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. …
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month16 days, 4 hours left to enroll

850 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