Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to split the databse field which is getting displayed on crystal report
means a field on crystal report
like-"xxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxx"
but i wish to print like
"xxxxxxxxxx xxxxxxxxxxxxxxxx
xxxxxxxxxxxxx xxxxxx"


my question is that,when we are dragging database field name on crystal report,which is showing the value on crystal report which is represented by that field in database,that value i want to spit
e.g a address field which can have a large value in side database and when i will drag that address field on crystal report that gone a show that entire address value in a single line like

address
----------------------------------------------
xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx,xxxxxxxxxxxx
----------------------------------------------
but wish to split that address into more than one line accoerding to the specific length it means i wish to display that address like

address
-----------------------------------------
xxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx,xxxxxxxxxxxx
-----------------------------------------
is it possible in crystal reports??
if yes,then how??
this is my question,
Thanks in advance
Posted
Updated 15-Jan-16 16:43pm
v4
Comments
deepankarbhatnagar 15-Jan-16 7:03am    
Not getting your point..

If I understand the question correctly, you'll need to define wrapping for the field in the report. Have a look at these instructions: Wraping field in crystal report | Sochinda's Blog[^]
 
Share this answer
 
This seems like a text justification problem, check link which should help you in resolving the solution

How to align a text to justified in crystal reports? - Stack Overflow[^]
 
Share this answer
 
You'll want to split it in your query so that you have two fields. Then just place the fields however you want on the report.
 
Share this answer
 
use css property for split text according to column max-width.

word-break: break-all;
word-wrap: break-word;
max-width: 155px;
 
Share this answer
 

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