SpreadJS Documentation
BeforePrint Event
GC.Spread.Sheets Namespace > Events type : BeforePrint Event
The print Dom
Whether cancel print
Occurs before the print
Syntax
var instance; // Type: Events
instance.BeforePrint = function(iframe, cancel) { };
BeforePrint = function ( 
   iframe : Object,
   cancel : booble
) { };

Parameters

iframe
The print Dom
cancel
Whether cancel print
Example
//This example uses the BeforePrint.
window.onload = function(){
     var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
     spread.bind(GC.Spread.Sheets.Events.BeforePrint, function (e, data) {
         alert(data.iframe + '\n' + 'cancel: ' + data.cancel);
     });
}
See Also

Reference

Events type