文本对象中的新行...帮助! [英] NEW line in Text Object ...HELP!

查看:52
本文介绍了文本对象中的新行...帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用Cristal Report for VS 2003,我从代码创建文本对象,并希望这样
添加一些文本...



但我的文字不止一行。我添加了"\ n"在每个
行的末尾,但Cristal报告中的文本对象不认为它像行尾结束
把它们全部放在一起...



如何告诉文本对象我想将文本拆分成更多行?



HELP

解决方案

< blockquote>

您需要做的是使用包含字符串的公式字段,并替换"\ n"与"< br>"然后选择格式字段。在段落选项卡上将文本解释设置为HTML文本。


示例公式:
"第一行< br>第二行"


Hi,
I use Cristal Report for VS 2003 and I create text object from code and want so add some text to it ...

But my text is more than one line. I add "\n" on the end of every line but text object in Cristal report don’t recognized it like end of line end put it all together...

How to tell text object that I want to split text into more line?

HELP

解决方案

What you will need to do is use a formula field that has your string in it, and replace the "\n" with "<br>" and then choose to Format Field.  On the paragraph tab set the Text Interpretation to HTML text.

Example formula:
"First line <br>Second Line"


这篇关于文本对象中的新行...帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆