SetPrintHeadings

SetPrintHeadings(bPrint)

Specifies whether the current sheet row/column headers must be printed or not.

Parameters:

Name Type Description
bPrint boolean

Specifies whether the current sheet row/column headers must be printed or not.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetPrintHeadings(true);
oWorksheet.GetRange("A1").SetValue("Row and column headings will be printed with this page: " + oWorksheet.GetPrintHeadings());
builder.SaveFile("xlsx", "SetPrintHeadings.xlsx");
builder.CloseFile();

Resulting document