How to align a text to justified in Crystal Report

2019-07-01 17:49发布

I have a text like below.

ABC agrees to provide programming services for ABI ‎("‎CLIENT‎") ‎as described below under
"‎Programming Services‎" ‎for <u>which CLIENT is to pay</u> a rate described in Attachment A.

This text should be underlined and the whole text should be justified. I have used a formula field with TextInterpretation as HTMLText. The text is underlined, but it's not justified correctly.

I tried to use TextObject, it's justified but the required text is not underlined. Please show me how to both underline and justify text.

3条回答
狗以群分
2楼-- · 2019-07-01 18:25

You can do it in the formula (setting HTML Text in Text Interpretation) with html tags. For example:

'<div align="justify">El nombre es <b>primordial</b> de saber...</div>'

I do it because I need a formula with some words in bold and justified text.

查看更多
Fickle 薄情
3楼-- · 2019-07-01 18:40

Put your formula into a Text Object and double click the text object to edit. Now select the formula, Right Click and click on Format {@formula_name}. Then Select HTML Text in Text Interpretation. You can see the Text will be justified and tags will be recognized too.

Check the images below for reference.

Formula_Format
Text_Format

And this is the result I got

Result
Hope this helps you. Try this and pls get back with your results.

查看更多
爷的心禁止访问
4楼-- · 2019-07-01 18:44

solution for Justify in crystal report with visual studio 2010
**Right click on your Text Object In format Editer

Paragraph -> Horizontal Alignment -> Alignment -> Justified**

查看更多
登录 后发表回答