静态字符串中的非固定宽度文本 - Jasper Reports [英] Non-fixed width text in a static string - Jasper Reports

查看:147
本文介绍了静态字符串中的非固定宽度文本 - Jasper Reports的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我在这篇文章后所学到的:如何拉伸相对于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."

任何人都可以在Jasper中建议一种方法吗?我完全没有想法。

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

推荐答案

你想要一个像这样的值的文本字段:

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

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

或者是这样的:

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.

这篇关于静态字符串中的非固定宽度文本 - Jasper Reports的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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