NativeExcel for .Net Developer's Reference

IPageSetup.LeftHeader Property

Returns or sets the left part of the header.

[Visual Basic]
PropertyLeftHeaderAsString
[C#]
stringLeftHeader{get;set;}
[C++]
__propertyString*get_LeftHeader();
__propertyvoidset_LeftHeader(String*);
[JScript]
functiongetLeftHeader():String
functionsetLeftHeader(String);

Property Value

String. Left part of the header.

Remarks

Special format codes can be used in the header text.

Example

This example prints the date in the upper-left corner of every page.

[C#]
book.Worksheets[1].PageSetup.LeftHeader = "&D";
[VisualBasic]
book.Worksheets(1).PageSetup.LeftHeader = "&D"
[C++]
book->Worksheets->Item[1]->PageSetup->LeftHeader = S"&D";

See Also

IPageSetup Interface | NativeExcel Namespace | Special Formatting Codes | CenterHeader | RightHeader | LeftFooter | CenterFooter | CenterFooter | PageSetup Property