GetPrintHeadings
Returns the page PrintHeadings property which specifies whether the current sheet row/column headings must be printed or not.
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
boolean
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", "GetPrintHeadings.xlsx");
builder.CloseFile();
Resulting document