Spread.Sheets Documentation
Setting a Background Image

You can specify a background image for a cell.

Using Code

This example sets an image in the cell.

JavaScript
Copy Code
$(document).ready(function () {
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
    var activeSheet = spread.getActiveSheet();

    //Set backgroundImage to cell(1,1).
    activeSheet.getCell(1, 1).backgroundImage("Image file path name");
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.