Image not getting displayed in exported Excel sheet

218 Views Asked by At

I am exporting an Excel sheet using NatTable (Eclipse Nebula). It contains an image in the header layer and some text in the header as well as body. Here is the code for configuration:

ImagePainter bgImagePainter = new ImagePainter(getImg());       
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, bgImagePainter, DisplayMode.NORMAL, HeaderLayout.overImg);
        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle, DisplayMode.NORMAL, HeaderLayout.overImg);

Also, I use ExcelExporter to export the data to an Excel Workbook.

I don't know where the error could be, because the text in all other columns is displayed perfectly. If you need to look at any other code snippet, I will update it.

1

There are 1 best solutions below

2
On

I don't see the what the "error" could be, since you are not telling what your issue is. But I suppose your question is why the image is not exported. And AFAIK the reason is that the NatTable exporter does not support exporting of images at the moment.