sheets.drawings.imageString

The ID of the image to display.

Example

<script>
var workbook = new kendo.ooxml.Workbook({
  images: {
    "productImage": {
      data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
      type: "image/png"
    },
    "companyLogo": {
      data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
      type: "image/png"
    }
  },
  sheets: [
      {
          drawings: [
              {
                  topLeftCell: "B2",
                  width: 100,
                  height: 100,
                  image: "productImage"
              },
              {
                  topLeftCell: "D2", 
                  width: 80,
                  height: 50,
                  image: "companyLogo"
              }
          ],
          rows: [
              { cells: [ { value: "Product" }, { value: "Image" }, { value: "Brand" }, { value: "Logo" } ] }
          ]
      }
  ]
});

workbook.toDataURLAsync().then(function(dataURL) {
  kendo.saveAs({
    dataURI: dataURL,
    fileName: "image-id-example.xlsx"
  });
});
</script>
In this article
sheets.drawings.image
Not finding the help you need?
Contact Support