I try to export an excel file with QRcode in a cell. I have generated QRcode (returns as a container), but it cannot be set as cell value. It seems that SysExcelCells cannot accept an image as its value. Does anyone know how to solve this issue?
The code for generating QRcode:
private container invoiceQRCode(str QRCodeString)
{
FileIOPermission perm;
str tempFileName;
BinData binData;
container imageContainer;
tempFileName = this.callQRCodeEncoder(QRCodeString);
perm = new FileIOPermission(tempFileName,'r');
perm.assert();
binData = new binData();
binData.loadFile(tempFileName);
imageContainer = binData.getData();
CodeAccessPermission::revertAssert();
return imageContainer;
}
And when setting the cell value, error is found.
cells.item(2, 1).value(conPeek(this.invoiceQRCode("a123456"), 1));
*This post is locked for comments
I have the same question (0)