SetPrintHeadings
function SetPrintHeadings(bPrint: boolean = null): void
Description
Specifies whether the current sheet row/column headers must be printed or not.
Parameters
- bPrint
boolean
null Specifies whether the current sheet row/column headers must be printed or not.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetPrintHeadings(true);
oWorksheet.GetRange("A1").SetValue("Row and column headings will be printed with this page: " + oWorksheet.GetPrintHeadings());