Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fix field with in crystal export to text

Status
Not open for further replies.

needmoremoney

Technical User
Mar 30, 2005
123
US
Hello,

I'm working on this report and need some help.

specs:

Fixed Length ASCII

Position Field Size Details
1-1 Transaction C 1 I or V
2-8 Company Name 7 Left justified, space padded
9-18 Account number 10 Right justified, leading zeros
19-28 Check Number 10 Right justified, leading zeros
29-34 Check date 6 0M0DYY
35-44 Amount 10 Right justified, leading zeros, implied decimal
45-46 CR/LF 2 Record Terminator


Any help ... thanks a million. I don't know how to format the fix size and the justification. All of the fiels exists in one text field.
 
Hi,
need a bit more info to start with...
what version of Crystal Reports are you using ? What type of database are you reporting off of ? What is the purpose of the report ?

ShortyA
 
You can get leading zeros for numeric fields in Crystal, using Totext({a.number}, "000000000"). This means that 7123 will come out as 000007123. Does this help?

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Madawc... that did the trick. But I need one more thing. I need to specify each field to be only a specific length. For example, the field must have 8 chars, so if I pull data that has only 4 chars, the data would display:

" GOOD"

By the way, I'm using crystal 8.5 with access 97 and access 2000.

thanks for all the help people. :eek:)
 
Right-justify your text?

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top