Classic header and footer picture sources

Internal version 2.384.854 retains worksheet header and footer picture packets in a shared source while reading a Classic workbook, avoiding a complete resident drawing body and another full copy for each copied worksheet

Loading, copying and saving

Ordinary file loading owns its retained picture source independently of the input file, and saving streams that source through bounded buffers

TXLSWorksheets.AddCopy shares immutable picture-source ownership within a workbook, so a surviving copied worksheet can save its pictures after the original worksheet is deleted

Cross-workbook copying through the direct Classic API still refuses header and footer pictures that depend on their original workbook's picture group; the refusal occurs before creating a destination worksheet or preparing its resources

The separate typed XLSX header and footer image API retains its own copy and media-ownership behavior

Continuation and source boundaries

Matching native HFPicture continuation packets can share one retained file source, while ordinary saving preserves the actual packet identifiers, boundaries and complete bytes

Legacy generic Continue packets keep their original bytes; explicit logical capture removes repeated headers only when the full header identity and complete OfficeArt extent prove that framing

Normal loading and saving use checked wide lengths, while explicitly requested semantic capture retains its existing byte limit and rejects an oversized contiguous result before allocation

Workbook-global picture groups retain their existing separate bounded representation

Focused qualification

A native-authored small input retains its complete global and worksheet picture packets after same-book copying, original-sheet deletion, saving with the input unavailable, reopening and repeated saving; the same source also survives public RC4 reopening and plain reserialization

One derived 12 MiB transport control retains all 1,533 worksheet picture packets while its observed Pascal heap peaks are 206,096 bytes during input and 47,680 bytes during three copies

These figures cover the measured Pascal allocation regions, excluding native allocations, operating-system memory, temporary disk and explicitly requested complete semantic capture; the derived large drawing is a transport control rather than large-image appearance qualification

A separate legacy continuation control and bounded source-fault checks retain packet bytes, caller cursor and ownership, and preserve the tested destination during a failed read before a healthy retry

A physical public copy beyond MaxInt and additional compiler or platform qualification remain separate work

Back to the capability overview