图片无法显示iReport

时间:2019-06-28 02:36:47

标签: java netbeans-8 ireport

我在iReport 5.1.0中设计了此示例报表,仅插入了一个图像并尝试预览,在jar中生成报表后在ireport中显示动态图像的问题。我该怎么做才能显示动态图像? ?

我试图更改代码或在report-inspector中设置参数,但仍然找不到该字节。

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
            String wl = sdf.format(tanggal.getDate());

            String NamaFile = "/report/posupply.jasper";
            HashMap hash = new HashMap();
            String tk = JOptionPane.showInputDialog(null, "Masukkan nama Supplier","Laporan Supplier",JOptionPane.QUESTION_MESSAGE);
            try {
                hash.put("c", wl);
                hash.put("n", tk); 
                runReportDefault(NamaFile, hash);
               } catch (Exception e) {
                   JOptionPane.showMessageDialog(rootPane, e);
               }

我得到的结果

the byte not found:..\images\a.jpg

0 个答案:

没有答案
相关问题