GC.Spread.Sheets Namespace > Workbook type : print Method |
var instance = new GC.Spread.Sheets.Workbook(host); var value; // Type: any value = instance.print(sheetIndex);
function print( sheetIndex : number ) : any;
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3}); var activeSheet = spread.getActiveSheet(); activeSheet.suspendPaint(); //set value for (var r = 0, rc = activeSheet.getRowCount() - 5; r < rc; r++) { for (var c = 0, cc = activeSheet.getColumnCount() - 5; c < cc; c++) { activeSheet.setValue(r, c, r + c); } } activeSheet.resumePaint(); //Add button for printing $("#button1").click(function () { spread.print(0); });