本人初用iReport,显示数据库中的图象的方法,提供给大家:
第一步:在iReport中第一步:先建数据库连接。
第二步:写好动态查询,即包涵照片的字段的查询,
例如:select r.xm, substr(r.csrq,1,4)||'年'||substr(r.csrq,5,2)||'月'||substr(r.csrq,7,2)||'日' csrq,(select dictvalue from zh_dictvalue where dictcode=xb and dictname='rk_xb') xb,(select dictvalue from zh_dictvalue where dictcode=mz and dictname='rk_mz') mz,(select dictvalue from zh_dictvalue where dictcode=ssxq and dictname='rk_xzqh') ssxq,xz,xp,xz,fwcs from czrk_jbxx r,rk_zpxx p where r.gmsfhm=p.gmsfhm and rownum<2
本文介绍如何在iReport中显示来自数据库的图像。通过建立数据库连接并编写包含图像字段的动态查询语句,实现图像数据的有效加载。适用于初学者及需要在报表中展示图像的开发者。
322

被折叠的 条评论
为什么被折叠?



