cancel
Showing results for 
Search instead for 
Did you mean: 

exact character spacing

Former Member
0 Kudos

I have problem in one report when using Arial - in text objects where I write the text directly it works with exact character spacing, but when the text object is a database field it does not work with exact character spacing - it does not change at all.

Accepted Solutions (0)

Answers (1)

Answers (1)

vitaly_izmaylov
Employee
Employee
0 Kudos

If I need fixed spacing between characters, I always use "Courier New" font.

Former Member
0 Kudos

But it is the customer who have choosen Arial not me, and they want Arial.

Former Member
0 Kudos

and why is it working when I put the text with Arial directly into the text box?

vitaly_izmaylov
Employee
Employee
0 Kudos

Crystal Reports renders text based on the following elements:

1. Printer Driver

2. Version of text rendering .dll loaded from Windows OS - usp10.dll

3. Font installed on the machine

Does the problem reproducible on another machine? If yes, then play with above elements to find the cause.

Former Member
0 Kudos

The databas text is in HTML - that is the problem - spacing does not work if it is HTML. If I do not use HTML then Crystal removes Carriage return at the end of the text.

vitaly_izmaylov
Employee
Employee
0 Kudos

If Carriage return is the only show stopper then potential workaround is to add the carriage return character at the end of the text using formula: {text field} + chr(13)

former_member292966
Active Contributor
0 Kudos

Hi Inger,

If the field has HTML formatting then Crystal won't undo that. If you can create a formula that strips away the HTML tags and get just the text you want, then you can use that formula in the Text Object and it should work.

Good luck,

Brian

Former Member
0 Kudos

Thanks for your help! I skip HTML and put a chr(13) at the end.