在 Crystal Reports 参数字段中输入回车 [英] Enter a Carriage Return in a Crystal Reports Parameter Field

查看:18
本文介绍了在 Crystal Reports 参数字段中输入回车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将参数字段用作报表的注释框,当您运行它时,您可以在参数中自由输入注释,它将在表单上显示为文本框.但是,我发现您无法输入回车(换行).

I'm trying to use a parameter field as a notes box for a report, where when you run it, you can freely enter notes into the parameter and it will display as a text box on the form. However, I've found you cannot enter a Carriage Return(new line).

有人知道在水晶参数中输入新行的方法吗?

Anyone know a way to enter a new line in a parameter for crystal?

推荐答案

想通了.创建了一个名为 notes 的参数字段,然后创建了一个公式字段来更改注释.

Figured it out. Created a parameter field called notes, then a formula field to alter the notes.

Replace ({?Notes},"." ,"."&ChrW (10) )

用 .period 和新行替换任何句点.

That replaces any periods with a .period and a new line.

这篇关于在 Crystal Reports 参数字段中输入回车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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