HotXLS Docs

Formatting Codes for Headers and Footers

These special formatting codes may be embedded in the header and footer properties (LeftHeader, CenterHeader, RightHeader, LeftFooter, CenterFooter, RightFooter)
&L Left aligns the characters that follow
&C Centers the characters that follow
&R Right aligns the characters that follow
&E Turns double-underline printing on or off
&X Turns superscript printing on or off
&Y Turns subscript printing on or off
&B Turns bold printing on or off
&I Turns italic printing on or off
&U Turns underline printing on or off
&S Turns strikethrough printing on or off
&D Prints the current date
&T Prints the current time
&F Prints the name of the document
&A Prints the name of the Workbook tab
&P Prints the page number
&P+number Prints the page number plus the specified number
&P-number Prints the page number minus the specified number
&& Prints a single ampersand
& "fontname" Prints the characters that follow in the specified font. Make sure you include the double quotation marks
&nn Prints the characters that follow in the specified font size. Employ a two-digit number to specify a size in pointers
&N Prints the total number of pages in the document

Existing Classic pictures

From 2.384.132 onwards, loading, editing and saving the same Classic BIFF8 workbook keeps the header and footer picture resources that are already there, cropped pictures and images spread over multiple physical records included

Global image-resource groups stay together with the continuation boundaries they came in with, worksheet drawing records keep their existing anchors and references, and repeated saves leave the loaded resources in place

Loading holds the global picture batch back until the workbook load has succeeded, capped at 8192 physical records, 64 MiB of payload and 8224 bytes for a single physical record

Preservation applies to pictures that already exist in the same workbook; typed Classic picture authoring, portable rendering and cross-workbook image-resource remapping sit behind separate support boundaries

Keeping opaque bytes preserves them as they are; it neither validates OfficeArt semantics nor turns malformed input into something Excel accepts. Ordinary, cropped and continued-image controls run natively and supply the normal-open acceptance evidence