Well, it may be possible using a scriptlet... :( But, what I meant, was to write java source code and include it in your iReport library. To me, this seems like an external task. However, I'm not qualified to say this for sure... I was simply making the suggestion. For better advice, I would search around the forum some thing similar to your problem (sorry).