Click here to Skip to main content
15,885,173 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
Please help me with this....
I have a doubt while using Crystal Reports in ASP .Net Visual Studio 2008. I am trying to take a report which is actually in the form of a letter where i have kept Name, Address etc.. in data fields and remaining content is predefined. But when i try to export it,the alignment isn't properly justified.

For example if I get a long name in the data field, part of the name will be cut off and it will come in the next line as another part. If the name is "Codeproject", when exporting it comes as "Codepr" in the end of one line and "oject" in the starting of another line.

So can anyone help me with this...I wanna align it properly..

Thanks in advance...
Posted
Updated 6-Jul-14 9:08am
v2
Comments
CHill60 4-Jul-14 8:55am    
Can't you just make the datafield bigger?
Sam Ferin 4-Jul-14 9:03am    
Actually the problem is mainly on Address field. Even though if i keep it bigger,when the Address field exceeds a particular values, it showing like that only. Note: My varchar length should be Max.

Thanks for your reply man...
CHill60 4-Jul-14 9:34am    
Are you breaking the address down into like line1, line2, line3 etc and use separate fields for each line?
Sam Ferin 5-Jul-14 6:13am    
Naah...I am using only one field for address...
CHill60 5-Jul-14 9:57am    
Try splitting it down and make the datafields bigger

1 solution

Agree with CHill. Split that address field to multiple items. Using formula, you could format that perfectly. Check this
How to suppress a blank line within an address block[^]
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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