Crystal Reports for Visual Studio 2003 and text cut/truncation in fields
June 23, 2008 at 1:07 pm Leave a comment
Here is a problem: Crystal Reports for VS2003 by default truncates fields using word truncation strategy so if field has text “ABCD EFGHI” and only “ABCD EF” fits then “ABCD” will be displayed. Also we don’t need wrapping to next line.
So the solution is: replace common spaces with non-breakable ones.
string s = ”ABCD EFGHI”;
string result = s.Replace(” “, (char) 0x00A0);
Entry filed under: Uncategorized. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed