NativeExcel for .Net Developer's Reference

IPageSetup.PrintHeadings Property

Gets or sets a value that indicates whether the row and column headings are printed with this page.

[Visual Basic]
PropertyPrintHeadingsAsBoolean
[C#]
boolPrintHeadings{get;set;}
[C++]
__propertyboolget_PrintHeadings();
__propertyvoidset_PrintHeadings(bool);
[JScript]
functiongetPrintHeadings():bool
functionsetPrintHeadings(bool);

Property Value

True if row and column headings are printed with this page.

Example

This example turns off the printing of headings for sheet one.

[C#]
book.Worksheets[1].PageSetup.PrintHeadings = false;
[VisualBasic]
book.Worksheets(1).PageSetup.PrintHeadings = False
[C++]
book->Worksheets->Item[1]->PageSetup->PrintHeadings = true;

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property