XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Unknown
    • Resolution: Not a Bug
    • Affects Version/s: 5.0.1 GA
    • Fix Version/s: None
    • Component/s: Engine, Report Generation
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Operating System/s:
      Windows 7 (64-bit)

      Description

      The report renders correctly in the preview but when I try to render it on PDF Acrobat gives me the following error: "data not sufficient for an image".

      I'm using an image-field to represent the image, loading the value using the SINGLEVALUEQUERY function.

      The query which I'm executing is this Beanshell script (scriptable datasource):

      import java.awt.Image;
      import java.io.File;
      import java.io.IOException;
      import javax.imageio.ImageIO;
      import javax.swing.table.DefaultTableModel;
      import javax.swing.table.TableModel;

      // Crear imagen
      File imageFile = new File("C:
      logo.jpg");
      Image image = ImageIO.read(imageFile);

      // Meter imagen en celda de TableModel
      TableModel tableModel = new DefaultTableModel(1,1);
      tableModel.setValueAt(image, 0, 0);
      return tableModel;

      The image shows perfectly fine on the preview but makes the PDF unreadable.

        Attachments

          Activity

            People

            Assignee:
            project admin Triage
            Reporter:
            rd87 Rafael Báguena Girbés
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: