Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

jasper reports - Watermark across the page in JasperReports

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

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..

I am using ireport to design the report...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...