JasperReports页面上的水印 [英] Watermark across the page in JasperReports

查看:1585
本文介绍了JasperReports页面上的水印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在网络应用程序中使用jasperReports和iReports来生成报告。

We are using jasperReports and iReports in our web application to generate reports.

当我探索jasper报告时,我能够轻松地在报告中插入水印..

When I explored jasper reports I was able to insert watermark inside the report easily..

然而我的目的是将水印字符串说(迈克尔杰克逊)放在页面上。

However my purpose is to put the watermark String say (Michael Jackson) across the page.

通过属性我只能找到左/右和上下旋转选项 ...

Going through the properties I can only find rotation option of left/right and upside down...

是否可以放置页面上的报告中有水印..

Is it possible to place watermark in the report across the page..

我正在使用 ireport 来设计报告...

I am using ireport to design the report...

推荐答案

JasperReports本身不支持将文本旋转到90度,180度或270度以外的任何角度。一个解决方案是生成旋转文本的图像,然后在报告上呈现。

Rotating text to any angle other than 90, 180 or 270 degrees is not natively supported by JasperReports. A solution would be to generate an image of the rotated text and render that on the report instead.

这个jasperforge线程,用户artduc共享一个报告scriptlet来完成这个。

In the last post of this jasperforge thread, user "artduc" shares a report scriptlet for doing exactly that.

这篇关于JasperReports页面上的水印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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