静态字符串中的非固定宽度文本 - Jasper Reports

发布于 2024-12-28 16:39:57 字数 331 浏览 1 评论 0原文

正如我从这篇文章中学到的: 如何相对拉伸文本字段对于 Jasper Reports 中的数据宽度,无法拉伸文本字段的宽度。所以我现在试图确定是否可以在文本字段中嵌入静态文本?

我需要实现这样的场景:

“您当前的雇主[非固定宽度文本]将与您联系 很快。”

任何人都可以建议在贾斯珀中执行此操作的方法吗?我没有主意了。

So as I have learned since this post: How to stretch a text field relative to data width in Jasper Reports it is not possible to stretch the width of text fields. So I am trying to establish now whether it is possible to embed static text within a text field?

I need to achieve a scenario something like this:

"You're current employer [non-fixed width text] will contact you
soon."

Can anyone suggest a way to do this in Jasper? I'm all out of ideas.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱本泡沫多脆弱 2025-01-04 16:39:57

您需要一个具有如下值的文本字段:

"Your current employer, " + $F{Employer} + ", will contact you soon."

或者,像这样的值:

msg("Your current employer, {0}, will contact you soon.", $F{Employer})

还有其他可能性......但这些是最常见的。简而言之,这很常见。

You want a single Text Field with a value like this:

"Your current employer, " + $F{Employer} + ", will contact you soon."

Or alternatively, something like this:

msg("Your current employer, {0}, will contact you soon.", $F{Employer})

There are other possibilities... but those are the most common. In short, it's common.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文