Click here to Skip to main content
16,004,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a field in crystal report which have large string, i want to split that string in two or three parts to make my report look good. can any body know how to do it.
Posted

1 solution

On the 'Field Explorer' create a formula field by right clicking 'Formula Fields' and clicking 'New'.

Open your formula field by double clicking it and then write your code something like following.

Dim Test() As String
Test = Split("fieldname Or String" , " ")
formula = Test(1)

'formula' will return the result to the field.

Be sure to change your syntax to 'Basic Syntax'
You can figure out the 'Crystal Syntax' by looking at crystal reports help.

Note: This is tested in Crystal Reports 2008
 
Share this answer
 
Comments
suresh kumar behera 5-Dec-11 2:06am    
i have a data in pv/1 and sv/1 i wanna make two group through pv for purchase voucher ans sv for sales voucher plz quick reply

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900