Skip to content

Replies

0
Phani kay
Phani kay answered on Aug 16, 2017 2:29 PM

You cannot use the image object directly, you need to convert the image to canvas, then convert the canvas todataUrl. 

var image = new Image(50, 50);

image.src = args.cellValue;

var canvas = document.createElement("canvas");

canvas.width = image.width;

canvas.height = image.height;

canvas.getContext("2d").drawImage(image, 0, 0);

var imageUrl = canvas.toDataURL();

var imageShape = new $.ig.excel.WorksheetImage(imageUrl );

0
Phani kay
Phani kay answered on Mar 31, 2017 3:26 PM

This code was suggested previously

It shows the below error

Cannot call method 'getHashCode' of null.

You mentioned to have a workaround for it, in your new release do you have the code for it?

Thanks,

Phanindra.

0
Phani kay
Phani kay answered on Feb 24, 2017 6:19 AM

Do you have a sample of the workaround of the process you applied for your problem? And did you use the ig worksheet to add image to excel?

0
Phani kay
Phani kay answered on Feb 23, 2017 4:35 PM

Hello,

I have been facing the same issue, has this issue been fixed already?