Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a field in database whose datatype is text. I am using SQL server 2008 R2 and crystal report 8.5. When I try to display this field , some data gets lost while displaying. Then I got solution from someone that,
Try to find the length of the String and the using Left, Mid and Right string functions you may display the data. But there is a space between one word.

Left({Database_field},255) & Mid({Database_field},256,510) & Mid({Database_field},511,765)......


I did this way But this way may split the word.
e.g. if the word "Code" has character no. as "C" = 254, "O" = 255 , "d" = 256, "e" = 257
then according to Left({Database_field},255), it will seperate/ break the word "Code" as into co de i.e. Co (Space) de in display.There will be space between one word.
How to tackle this issue?
thank you

What I have tried:

I got solution from someone that,
Try to find the length of the String and the using Left, Mid and Right string functions you may display the data. But there is a space between one word.

Left({Database_field},255) & Mid({Database_field},256,510) & Mid({Database_field},511,765)......


I did this way But this way may split the word.
e.g. if the word "Code" has character no. as "C" = 254, "O" = 255 , "d" = 256, "e" = 257
then according to Left({Database_field},255), it will seperate/ break the word "Code" as into co de i.e. Co (Space) de in display.There will be space between one word.
How to tackle this issue?
thank you
Posted
Updated 13-Apr-19 4:52am

1 solution

 
Share this answer
 
Comments
djs83 15-Apr-19 2:02am    
thank you. But I have already checked can grow checkbox and set limit to '0'.
Still it is not working. While displaying data in crystal report, the word gets break in between as I as told before.
Its showing Co de instead of code.

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