如何使用公式字段在Crystal Report中使用新行 [英] how to use New line in Crystal Report using Formula Field

查看:93
本文介绍了如何使用公式字段在Crystal Report中使用新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,,,,





如何在换行符或下一行 > 水晶报告 。我们在c ++中使用''\ n''但在Crystal报告中我不知道...



我的rpt文件中有地址字段,即Add1,Add2和Add3。我连接Add1,Add2和Add3。但Add2和Add3应该在下一行。



可以有人吗?

Hi Friends,,,,


How to use newline or next line in crystal report. We used ''\n'' in c++ but in Crystal report i don''t know...

I have address fields in my rpt file i.e., Add1,Add2 and Add3. I am concatenating Add1,Add2 and Add3. But Add2 and Add3 should come in nextline.

Can anybody?

推荐答案

使用ChrW(13)换新行



例如...

Use ChrW(13) for new line

for example...
{stored.Add1} + ChrW(13) + {Stored.Add2} + ChrW(13) + {Stored.Add3}



快乐编码!

:)


Happy Coding!
:)

尝试从公式中获取HTML字符串并使用html标记格式化输出,例如



Try to get HTML string from the formula and use html tag to format your output, like

"Address: " & ToText(Add1) & " <br> " & ToText(Add2)





删除报表上的公式字段,并在''段落'上更改其文本解释属性标签为''HTML Text''



drop the formula field on your report and change its ''Text Interpretation'' property on ''Paragraph'' tab to ''HTML Text''


我对新行问题有变化



我有一个字段,我想根据某个单词的外观在值的中间插入一个回车符。



例如,文本字段值可能是对象的信用额度。公司名称。 (全部在一个字段中)

我想插入一个新的段落行,使其显示为;



对象的信用额度。

公司名称。



是这可能吗?

谢谢
I''ve got a variation on the new line question

I have one field and I want to insert a carriage return in the middle of the value based on a the appearance of a certain word.

For example, the text field value might be "Credit line for the object. Company Name." (all in one field)
I want to insert a new paragraph line so it displays as;

Credit line of the object.
Company Name.

Is this possible?
Thanks


这篇关于如何使用公式字段在Crystal Report中使用新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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