You can use formula for that. You have mentioned the first field's length to
be 22. check whether the formula below work outs for you.
NumberVar RequiredLength:= 22;
NumberVar CurrentLength:= Length (TOTEXT({yourfieldname}));
(IF RequiredLength < CurrentLength
THEN TOTEXT ({yourfieldname}) [1 TO RequiredLength]
ELSE ReplicateString (" ",RequiredLength - CurrentLength) + TOTEXT
({yourfieldname}))
On Fri, Jan 29, 2010 at 6:47 PM, TyreDude <[email protected]>wrote:
> Hello,
>
> I am new to Crystal reports and I would like to know if it is possible
> to specify the length of the text field. For example I would like to
> specify the length of the first field to 22 characters, the second
> text field should be "32" characters". These text files contain both
> text and spaces to pad out the line. I need to produce a space
> delimited TXT file from Crystal.
>
> Anyone give me some advice?
>
> Thanks in advance,
>
> Brett
>
--
Thanks & Regards,
Karthikeyan