sheets.drawings.topLeftCellString

A cell to which the drawing's top-left corner is anchored.

Example

<script>
var workbook = new kendo.ooxml.Workbook({
  images: {
    "chart": {
      data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
      type: "image/png"
    }
  },
  sheets: [
      {
          drawings: [
              {
                  topLeftCell: "C3",
                  width: 150,
                  height: 100,
                  image: "chart"
              }
          ],
          rows: [
              { cells: [ { value: "A1" }, { value: "B1" }, { value: "C1" } ] },
              { cells: [ { value: "A2" }, { value: "B2" }, { value: "C2" } ] },
              { cells: [ { value: "A3" }, { value: "B3" }, { value: "Image will be here" } ] }
          ]
      }
  ]
});

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