How to align a text to justified in Crystal Reports?

柔情痞子 提交于 2020-01-03 19:38:36

问题


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.


回答1:


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

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




回答2:


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.




And this is the result I got


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


回答3:


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.




回答4:


For VS 2017 the allignment configuration is moved to Common section



来源:https://stackoverflow.com/questions/12740207/how-to-align-a-text-to-justified-in-crystal-reports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!