简体   繁体   English

如何在Java NetBeanas中的Jasper报告图像中设置自定义报告

[英]How to set custom reports in a jasper report image in java netbeanas

I'm working on a shop management software, I got the db and everything set up, but when I want to generate pics for the reports. 我正在使用商店管理软件,已建立数据库并已进行所有设置,但是当我想为报告生成图片时。 simple pics, just company logo. 简单的图片,只是公司徽标。

But I want the pic to be stored on DB. 但是我希望图片存储在数据库中。

this is how you can manually set a pic. 这是您可以手动设置图片的方法。 But how can I get it from the db? 但是如何从数据库获取它?

pic 1 图片1

The reason why I want it from DB is because the user will use the same software in different shops, and I dont want him to generate a new jasper report file just to change the logo. 我之所以要从DB获得它,是因为用户将在不同的商店中使用相同的软件,并且我不希望他生成新的jasper报告文件只是为了更改徽标。

将其另存为db并以imgStream的形式从db中检索图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM