Pivot Timelines and Slicer data states
Available since version 2.384.98 for supported local non-OLAP PivotTables through the XLSX workbook facade
Timeline date-system parity
Typed creation, selection changes, imported selection mutation and calendar-preserving save/reopen are supported in both the 1900 and 1904 date systems; public date bounds retain their common calendar meaning while numeric wire values follow the Workbook epoch
Qualified active Timeline controls retain selection bounds and support another selection mutation after an in-memory epoch flip; that focused control restores its starting epoch before saving, while separate same-epoch output profiles have actual native refresh evidence
The whole-day Timeline domain begins on January 1, 1900; the earlier Worksheet OA zero-day versus time-only ambiguity remains a separate date-context issue and is not repaired by this contract
Nearest-second output, inclusion-changing projection refusals and the documented native 1904 UI-label offset keep their explicit limits; stored bounds are not shifted to imitate native UI labels
Create and connect a Timeline
TimelineCache := Workbook.CreatePivotTimelineCache(Pivot, 'EventDate');
if TimelineCache = nil then
raise Exception.Create('The Timeline cache was rejected');
TimelineView := ReportSheet.Timelines.Add(TimelineCache, 2, 7, 7, 12);
if TimelineView = nil then
raise Exception.Create('The Timeline view was rejected');
if TimelineCache.SetDateRange(EncodeDate(2026, 1, 1),
EncodeDate(2026, 1, 31)) < 0 then
raise Exception.Create('The Timeline selection was rejected');
TXLSXWorkbook.CreatePivotTimelineCache(ATable: TXLSPivotTable; const AFieldName: WideString): TXLSXTimelineCache creates or reuses a validated date-field cache and its required package identities; failure returns nil before committing staged state
TXLSXWorkbook.TimelineCaches exposes TXLSXTimelineCaches, with Count, zero-based Items[Index] and case-insensitive FindByName; the workbook owns these caches
TXLSXTimelineCache.Name identifies the cache, SourceName identifies its source field and IsNonOlapPivot identifies the validated supported binding; imported unsupported caches retain their original XML
TXLSXTimelineCache.ConnectPivotTable(ATable: TXLSPivotTable): Integer connects another owned view of the same PivotCache with a compatible date field; it returns 1 for success, including an existing connection, or -1 for rejection
TXLSXTimelineCache.SetDateRange(AStartDate, AEndDate: TDateTime): Integer uses inclusive whole-day endpoints and returns 1 or -1; endpoints must be integral dates from January 1, 1900 through December 31, 9999 in ascending order
Both 1900 and Date1904 workbooks support local Timeline authoring and selection changes; fractional selection endpoints reject, while source date values may retain time-of-day and records throughout the selected end day remain eligible
TXLSXTimelineCache.SelectionActive, StartDate and EndDate expose the active bounds; ClearSelection: Integer clears them without changing other filters and returns 1 or -1
Clearing the selection, and removing the cache with xlsxSlicerClearSelection, reject with -1 when the bound date field also carries a manual whole-day filter: the two are stored with the same whole-day marker, so the Timeline cannot claim one without the other. The selection, the filter and every connected view stay unchanged
Selections intersect other Slicers, manual or page filters and caller predicates; these operations do not refresh source caches, recalculate formulas or rewrite existing worksheet report cells
Date systems and stored date precision
Timeline selection endpoints retain their calendar meaning in both workbook date systems; importing, changing or clearing a selection and removing its cache with selection preservation use the workbook date system only when converting numeric worksheet dates and native date-filter criteria
Reopening and growing a local source preserves the same calendar selection across connected views; removing the Timeline with selection preservation retains the whole-day comparison after another save and reopen
Typed worksheet dates use seventeen significant digits when saved as numeric OOXML values, with precise reading for the supported date-serial range so ordinary saving and reopening retain the represented binary date value
The common model keeps original binary64 timestamps and distinct members; native Pivot cache output uses seconds and can require the detached precision projection described below, while native Timeline UI calibration remains a separate compatibility boundary
Native Date1904 Timeline UI and COM labels can display an offset even when stored calendar bounds and refreshed report amounts are correct; HotXLS does not rewrite the stored selection to imitate those labels
Imported Pivot ISO timestamps before December 30, 1899 retain their calendar date and time-of-day using the negative OLE date convention; shared date members, inline records, date bounds, grouping bounds and refresh timestamps use the same conversion
Negative OA worksheet source dates
Supported typed worksheet dates before December 30, 1899 convert their negative OA fraction into a linear spreadsheet fraction when writing OOXML and convert it back when reading numeric date cells in either workbook date system
For example, OA -1.25 is December 29, 1899 at 06:00, represented by worksheet serial -1.75 in the 1900 system or -1462.75 in the 1904 system; the live source date is not rewritten or rounded
Ordinary negative numeric cells retain their numeric interpretation; the same calendar conversion keeps owned Pivot source-materialization identity aligned with the worksheet writer, and supported ordinary date equality retains its result through repeated saving and reopening
Actual native file opening and saving preserve these numeric serials, but Excel displays pre-1900 calendar dates as #### and its COM date authoring can reject them; native negative-date Pivot refresh and Timeline selection are not qualified by this profile
The existing positive OA zero-day time-only convention and the January 1, 1900 minimum Timeline selection endpoint remain unchanged
Timeline views and removal
TXLSXWorksheet.Timelines exposes the worksheet-owned TXLSXTimelines collection, with Add, FindByName, zero-based Items[Index], Count, Delete(Index) and Clear; deletion removes UI while retaining its shared cache and selection
TXLSXTimelines.Add(ACache: TXLSXTimelineCache; ARow1, ACol1, ARow2, ACol2: Integer): TXLSXTimeline accepts an owned supported cache and an ordered one-based worksheet rectangle, returning an owned view or nil
TXLSXTimeline.Name is read-only, Cache identifies its shared cache, and Caption changes the display label; Level accepts 0 for years, 1 for quarters, 2 for months or 3 for days
TXLSXTimeline.SetBounds changes the one-based rectangle exposed by FromRow, FromCol, ToRow and ToCol; invalid geometry, unsupported bindings or grouped drawing geometry raise before mutation
TXLSXDrawingObject.Timeline returns the associated view for drawing kind xlsxDrawingTimeline; direct unsupported drawing transformations remain guarded
Status := Workbook.RemoveTimelineCache(TimelineCache, xlsxSlicerPreserveCurrentSelection);
TXLSXWorkbook.RemoveTimelineCache(ACache: TXLSXTimelineCache; AMode: TXLSXSlicerRemovalMode): Integer stages connected filters, UI, names and package cleanup together and returns 1 or -1
xlsxSlicerClearSelection removes the selection; xlsxSlicerPreserveCurrentSelection retains an active selection as a whole-day date comparison only when the date field is already on a row or column axis in every connected view
An unused or page-only date field rejects selection-preserving removal atomically; use explicit selection-clearing removal when that behavior is intended
Imported filters normalize only after every connection, inherited namespace and exact owned-filter provenance validates; opaque same-field attributes or children, foreign namespaces, external bindings and unsupported multiple-UI graphs retain their XML and reject mutation
Native materialization stages current Timeline selection with report metadata and cells, removing only the exact saved owned filter signature; arbitrary callback restrictions have no native XML representation and cannot be reproduced by Excel refresh
Ordinary OOXML saving preserves native relationship types, original paths and unrelated extensions; Strict output defaults to rejection and supports the explicit date-criteria policy below, ODS conversion reports Timeline loss and the XLSB values-and-styles subset rejects Timelines
Fixed numeric Pivot date criteria
TXLSPivotFilter.Value1 and Value2 use common numeric OLE Automation calendar values independently of Workbook.Date1904; use an invariant decimal representation with at most17 significant digits
This convention covers xlpfDateBetween, xlpfDateNotBetween, xlpfDateEquals, xlpfDateNotEquals, xlpfDateOlderThan, xlpfDateNewerThan, xlpfDateOlderThanOrEqual and xlpfDateNewerThanOrEqual
Import converts known numeric wire operands from the source epoch, and output converts common operands to the target epoch for both whole-day and time-sensitive comparisons; negative OLE time fractions compare in calendar order in the common query path
A direct operand edit updates an imported StrValue1 or StrValue2 alias only when that alias previously matched the old operand; conflicting explicit aliases reject an edited preserved-filter rewrite
Supported imported filters with stable standard identities retain operand edits during ordinary saving and lossless checked saving through detached owned XML; changing the target epoch also preserves criterion inclusion after explicit native materialization
Saving an authored condition preserves the new condition; call MaterializeNativePivotTable when the saved worksheet report body must reflect it before native refresh
Unrelated qualified root attributes and supplemental XML remain preserved, while unknown metadata inside an edited filter, unresolved numeric operands or comparison structure and ambiguous identities reject before output
Untouched unresolved wire criteria may round-trip unchanged; changing the target epoch or editing such criteria requires known calendar operands, and this increment does not broaden ISO or locale-dependent textual dates
Criterion XML snapshots and binding lookup share the projection memory and work budgets; an ordinary operand edit or epoch conversion does not itself report date precision loss, and report or save does not mutate source values, aliases or XML provenance
File and staged-stream pre-rejection preserve existing destination contents, size and position; final caller-stream copy failures retain the normal I/O contract, and successful saving retains normal style-compaction behavior
Editing imported date-filter structure
For the supported standard local Pivot profile, Field.Filters can add, clear, remove or replace a preserved fixed date filter and change its kind, UseWholeDay, name, description, evaluation order or represented measure/member-property metadata
Output prepares owned standard nodes, retains a replaced filter's native identifier and allocates new identifiers without collisions; unresolved identities, unknown metadata or unsafe changes to independent nondate filters reject before destination writes
After changing the source range, call RefreshPivotCache explicitly; call MaterializeNativePivotTable when the saved worksheet body must reflect growth, removal or an edited filter before native refresh
Operand-only edits preserve unrelated qualified XML, while structural edits require the complete supported standard view profile; preparation shares the existing aggregate memory and work budgets and does not modify the live raw tree or stored selection
Imported dateBetween and dateNotBetween filters retain their actual inclusive or exclusive bounds; editing Value1 or Value2 keeps those comparisons, while explicitly assigning FilterType restores the typed closed-interval defaults
Supported same-field lower, upper, equality and interval conditions compose as described below; other empty layouts, noninterval conditions and complete dependency growth/removal retain separate qualification limits
Subsecond Pivot and Timeline output
For supported local PivotTables, ordinary SaveAs and SaveAsChecked(..., True) prepare the same detached nearest-second projection for Open XML workbook, template and macro-enabled template output
The common model retains its original worksheet timestamps, cache date bits, record identities and stored selection; successful save keeps its established style-compaction and generation-update behavior
GetConversionReport identifies changed members, member collisions, affected records and calendar-day changes as PivotDatePrecision degradation; SaveAsChecked(..., False) rejects any actual precision loss before style compaction, callbacks or destination writes
A complete projection remaps owned cache members and records, Pivot item/page/base-item identities, connected local Slicer masks, Timeline bounds and supported materialized report cells; original source objects remain intact and report cells are emitted through a detached sparse overlay
Quantization uses deterministic nearest-second half-up rounding with exact adjacent-binary64 ambiguity checks; changed original/projected/final-wire record inclusion rejects, including a day carry that changes the stored Timeline selection
Incomplete or conflicting identity maps, unknown caller predicates or callbacks, unsupported raw XML and metadata, foreign format owners, edited owned report cells and overlapping output rectangles reject even when lossy output is authorized; reports identify incomplete plans as PivotDateProjection unsupported
Known fixed numeric date criteria use common OLE calendar operands and explicit source/target epoch conversion, including time-sensitive DateBetween in Date1904 workbooks; unresolved lexical or calendar provenance still rejects an edited rewrite or target-epoch conversion
File output uses the existing sibling-file commit; projected stream output is completed in a temporary file at the caller's starting offset before it is copied to the destination
Rejected plans preserve destination file contents and stream bytes, size and position; a caller stream that fails during the final completed-stage copy retains its own I/O failure contract
Projection preparation accounts cumulatively for cache snapshots, member maps, record matrices, query previews, connected masks, native report envelopes, sparse overlays and XML/order workspace against the configured memory and work limits
Strict output with subsecond dates
The qualified local profile composes nearest-second date projection with Strict output for both Excel date systems, shared Pivot caches, selected or cleared Timelines with or without UI, and supported workbooks without a Timeline
Keep StrictOOXML = True and explicitly choose xlsxStrictTimelineDateCriteria when a Timeline exists; inspect both PivotDatePrecision and Timelines losses before authorizing checked output
The final standard criteria are checked against the captured record set without applying the source Timeline again, so an incorrect inclusive next-day midnight cannot be hidden by the live selection
Detached Strict metadata, namespace resolution, serialized parts and final inclusion queries share the aggregate projection byte and work limits; text and formula content retains its lexical meaning
Unsupported ownership, callbacks, metadata or changed record inclusion remain errors even with AllowLossy = True; successful saving retains the normal style-compaction contract
The qualified local Strict profile can reopen and save again as Strict or Transitional, with the selected output dialect and target date system owning standard namespaces and workbook conformance
Same-field date conditions and Timeline selection
Supported ordinary lower, upper, equality and interval conditions on one local date field combine with an active Timeline day selection under xlsxStrictTimelineDateCriteria; Strict output contains one effective standard date interval and omits the Timeline UI and cache
The owned extension retains the original independent conditions and converted selection identity; import restores them only after their complete conjunction proves the emitted standard interval, including inclusive and exclusive endpoints
A cleared selection adds no condition, and changing the workbook date system retains common OLE Automation calendar meaning; assigning a converted condition's Value1 or Value2 retains its origin, while assigning FilterType explicitly re-authors it
The detached output stage updates supported saved report bodies after operand or selection edits without requiring live rematerialization, including exact-second dates; source cache domains, record identities, dates, criteria and live report cells remain separate from the stage
Every connected view participates in the owned cache plan; aggregate metadata and evaluation limits remain unchanged, and a retained three-view control exceeds the default one-million-step limit and refuses without changing source or destination
Checked output still requires loss authorization when Timeline UI or timestamp precision is lost; unknown ownership, callbacks, unsupported metadata, empty intersections and exhausted budgets refuse even with AllowLossy = True
Transitional output can retain the independent conditions and Timeline UI through the bounded single-view auxiliary profile below; verified imported auxiliary owners can also retire into Strict date criteria through the supported lifecycle
Retained Timeline UI with independent date conditions
Ordinary Transitional SaveAs, checked saving and conversion reporting support one local rectangular date-field interval with a retained Timeline selection, including two independent ordinary clauses with their original endpoint inclusivity
The detached output adds an owned trailing Boolean helper column, cache field and page filter whose formulas depend on the source date cells; the original date field keeps its axis, and native recalculation and refresh retain the independent ordinary condition after source-date or Timeline-selection edits
Saving does not add helper cells, fields, members or formulas to the live source; reopening verifies complete owned identities before restoring the original conditions and removing the helper role from common-model filtering
Repeated saves reuse the owned helper ordinal; supported record growth and removal rebuild formulas and clear obsolete owned helper rows, with an exact output formula inventory retaining unrelated formulas and matching calculation-chain relationships and content types
Known custom format owner contexts and binary64 source/cache dates remain intact; report and refusal preserve source storage and raw graphs, while successful saving retains the existing style-compaction contract
Formula, page, header and report-body collisions, unknown ownership or metadata, exhausted shared work/memory budgets and caller-held read leases refuse before destination publication; rejected streams preserve bytes, size and position
The native 1904 Timeline wire/getter frame is normalized only after its selection exactly corresponds to the supported ordinary filter frame; the original raw selection remains retained, and no blanket epoch shift is applied to arbitrary imported Timeline dates
A verified compact native report can retain its effective row and grand-total captions when the XML omits those attributes; each caption role must be unique and every remaining numeric, date and body cell must match the independently recomputed report before adoption
TXLSPivotTable.GrandTotalCaption preserves the represented grand-total caption through assignment, standard import, supported native output, preview and typed Pivot semantic reads; an empty value retains the existing Grand Total fallback
Retained Timeline UI with second-precision projection
The qualified single-owner Transitional auxiliary profile composes retained Timeline UI and independent ordinary date conditions with the existing nearest-second Pivot cache projection
The auxiliary view uses the same remapped cache and row ordinals as the projection plan, emitting each cache definition, record set, report body, helper formula set and Timeline graph once
The live worksheet keeps its original fractional date values, while source cache date bits, record identities, ordinary predicates and stored selection retain their meaning; report and plan construction remain read-only before normal save-time style compaction
Each record's original and rounded auxiliary predicate truth must agree, with the existing Timeline day-membership, Slicer-mask, exact quantization and adjacent-value ambiguity checks retained; a fractional threshold that changes inclusion remains unsupported
Ordinary SaveAs uses the existing allow-lossy behavior, and GetConversionReport reports actual second-precision degradation; SaveAsChecked with False rejects that loss before output, while True permits only a complete supported representation
New owned helper formulas use versioned and-interval-v2 metadata; a fractional target-calendar operand is reconstructed exactly as (hi*67108864+lo)/2^n, with bounded integer literals and an optional outer unary minus, avoiding Excel's decimal formula truncation during saving
The numeric calendar conversion avoids an intermediate decimal formatting/reparse step; integer dates stay integer literals, and subnormal or out-of-profile exponents reject rather than approximating the operand
Known and-interval-v1 helpers retain strict original owner validation and upgrade on a supported owned save; unknown policies, edited rational expressions, unknown metadata or changed helper truth still refuse
Mask captures, view/cache clones, membership scans, auxiliary comparisons and output identity lookups share the existing aggregate work and memory budgets; no default budget increase, new public API or implicit external I/O is introduced
Actual native refresh retains the qualified intersection and source fractions in both date systems, and exact operand bits and formula structure survive native save/reopen; shared/multiple auxiliary owners and changed-inclusion thresholds remain outside this profile; verified imported auxiliary-to-Strict conversion follows the lifecycle below
Retained auxiliary UI through Strict and native reopen
The verified single-owner imported conjunction profile supports retained Timeline UI, explicit Strict date-criteria output, native Strict refresh/save, library reopen, explicit Timeline UI restoration and native Transitional refresh/save
Both workbook date systems retain the effective SUM of 70 in the qualified four-record example, with original common selection dates and binary64 source values preserved
Strict output actually retires the last owned Boolean auxiliary cache/view field, source header/formulas, page filter and report cells into standard date criteria; original user-field ordinals remain unchanged, and the source range contracts from A1:C5 to A1:B5 in that example
Explicitly restoring the Timeline creates the owned third field and helper source again without losing the independent standard conditions or the stored selected day
Import adopts report ownership only after unique cache/view identity, standard namespace and conjunction provenance agree with a complete independently recomputed report, including every cell token, bound, caption role and represented style
Caller changes to report values, formulas or real formatting refuse overlay publication; the report and refusal preserve source storage/raw graphs and target bytes/position, while successful saving retains normal style compaction
Known native revision GUIDs retain their original namespaces with scoped mc:Ignorable declarations; unknown attributes, foreign lookalikes, invalid GUIDs and unrelated revision graphs remain unsupported
Relationship provenance is captured with bounded metadata during Open; report/save performs no implicit source or external reads, and output uses newly allocated relationship identities
The existing aggregate work and memory limits apply to complete ownership verification and detached construction; repeated exact XML ownership checks share a bounded plan-local result
Twenty fresh integration packages retain all frozen file-part bytes; their 176 primary parts and OPC graph checks distinguish raw XSD diagnostics from validation copies applying declared MCE rules and the existing Transitional xml:space exception
Shared-cache/multiple-view auxiliary ownership follows the supported profile below; changed-inclusion fractions and remaining growth/removal/empty-layout dependencies retain their separate limits
Shared Timeline views and helper ownership
Supported views of one local Pivot cache can retain distinct ordinary date predicates through independently owned Boolean helpers in one output cache schema; passive views retain their ordinary unfiltered role
Views can share one Timeline selection or use independent date fields and Timeline identities; each active view keeps its own helper and source predicate without duplicating the shared cache definition
Import first proves the complete helper group metadata, unique owners, headers, formulas and Boolean domains before restoring ordinary criteria as a group; it then independently recomputes the materialized report body and represented styles before capturing output ownership
A body or style mismatch clears that output-ownership snapshot and prevents later auxiliary takeover or output; it does not roll back ordinary criteria already proven from the complete group metadata
Explicit Strict date-criteria output retires the verified trailing helper group from detached cache, view and worksheet overlays while preserving original field ordinals, ordinary user predicates and effective selection
After reopening a verified converted source, creating and connecting a new Timeline takes over its exact former synthetic selection role; a new range replaces the old selection instead of intersecting with it, while original user conditions remain active
Edited or ambiguous selection provenance refuses takeover without removing user predicates; reports and rejected file or stream saves preserve source state and destination bytes, extent and cursor
Report ownership compares complete represented styles, including gradient stops and exact numeric values; both semantic gradient arrays are charged before allocation under the existing aggregate memory and work limits
Implicit date styles are registered before a named-style worksheet overlay writes styles, and prefixed workbook-view attributes retain their original namespace bindings through the qualified output dialect
The qualified shared layout has one date row field, no column fields, one measure and no Slicer or unrelated filters; detached output suppresses an extra empty measure row without changing the source ShowAll value
Qualified multidimensional Timeline layouts
Retained Timeline intersections also support a single measure with two row fields or one row field and one column field when the other axis fields have ShowAll disabled; the date field remains a row field
Detached output preserves the original date ShowAll policy, ordinary date conditions and stored selection while avoiding extra empty-member padding; actual native 1900-calendar refresh and replacement selection preserve the independently recomputed report
For a verified imported one-row/one-column layout with one measure and the qualified standard header offsets, an omitted colHeaderCaption can be recovered into the existing ColHeaderCaption property from its unique nonempty plain-text header cell
The caption copy is bounded and reserved before allocation, and adoption occurs only after every report value, bound and represented style matches; formulas, ambiguous roles, edited bodies or captions and foreign metadata do not grant output ownership
Three-level Timeline domains in Strict output
The qualified three-row EventDate/Region/Product tabular SUM hierarchy now supports direct typed authoring and conversion of native retained-UI sources to real Strict OOXML, retaining missing parents and their real child member domains in both date systems
The explicit Strict policy removes Timeline UI and retires its verified helper fields while preserving the effective intersection as standard Pivot criteria; source date bits, cache records, captions, ordinary criteria and the stored selection meaning remain unchanged
The existing owned member-domain role also recognizes this three-row profile when rows are tabular, subtotals are disabled, there is one data field and no unrelated Slicer owner; field-role inspection reserves eight existing work units per field
Checked-save reports identify the dropped UI, lossless file and stream requests refuse before target publication, and read leases, caller-edited body values or styles, unknown metadata and low-memory failures retain the established source and destination transaction
Actual Strict files open as native FileFormat 61 with no SlicerCaches, preserve every qualified body value and number format before and after refresh, and can be saved by Excel, reopened by the library and saved as Strict again
Retiring helper page fields clears their page-field cells above the report without moving the report body; complete independent comparisons retain the original body coordinates and every value and number format
This extends the qualified two-axis and three-tabular-row profiles only; deeper or mixed axes, subtotals, grouping, calculated descendants, multiple measures, wider shared-cache interactions and the remaining date lifecycle still need their own implementation and acceptance
Retained Timeline multilevel member domains
Retained Timeline output supports a qualified three-row hierarchy with EventDate first, Region second and Product third, tabular rows without subtotals and one ordinary SUM measure, while preserving the ordinary date predicate and Timeline selection in both date systems
Each level records the prefixes of the original visible records before expanding an unfiltered ShowAll field through its real cache members; a newly introduced parent has no original descendants and therefore exposes the real child cache domain even when the child has ShowAll disabled
An observed parent whose child has ShowAll disabled retains its actual visible children, while ShowAll enabled on that child expands the child domain; the first date level remains constrained by the predicates and selection, and an empty intersection creates no synthetic date prefix
This process changes no cache records, item identities, source date bits, ordinary criteria or selection meaning; complete leaf queries, retained file and stream saves, report/reopen and native refresh preserve the qualified body values and number formats
Prefix hashing, collision probes, retained keys and member visits consume the existing output budget before work or allocation; malformed or changed ownership, unsupported styles, unknown extensions and exhausted resources retain the source and existing destination through the established transaction
A three-record control with six retained Region members and four Product members produces 21 or 24 leaves under the unchanged default work and 64 MiB memory limits
The separate ten-Region/eight-Product control can save and reopen but exhausts the default cumulative work budget on its later report while proving the imported body/styles and reserving the conservative layout envelope; this resource limit has not been hidden by raising defaults or reducing charges
More general axis arrangements, grouped or calculated descendants, subtotals, wider shared-cache combinations and the remaining date lifecycle remain separate work; Strict conversion of this hierarchy uses the qualified profile above
Retained empty-member domains
The qualified two-field layouts also support ShowAll on the last-level Region field: EventDate as the outer row with Region as the inner row, or EventDate as the row field with Region as the column field, using one ordinary SUM measure
Missing members and members without included records retain their independently owned output domain and blank aggregate cells; this adds no cache records and preserves existing record-to-key ordinals, ordinary date criteria, stored selection and the original date-field ShowAll flag
A genuinely empty two-row intersection retains only its native grand-total row, while a row/column intersection retains its Region column domain; public aggregate reads and supported GETPIVOTDATA return the represented empty result without inventing a matching record
Domain expansion runs only in a detached output preview before accumulator allocation; hashing, collision probes, key storage, native identity maps and their comparisons consume the existing shared work and memory budget before allocation or writer callbacks
Actual native 1900 and 1904 controls retain full body bounds, scalar value bits and number formats through refresh, selection replacement and empty intersections; report and rejected file/stream output preserve source storage, raw graph and existing target bytes and position
Explicit Pivot item captions
| Member | Contract |
|---|---|
TXLSPivotItem.Caption | Reads or sets the standard OOXML item display caption without changing the underlying cache value or member identity |
HasCaption | Distinguishes an absent caption from an explicit empty string |
ClearCaption | Restores the default presentation policy by removing the explicit caption |
Assignment, standard import/export, typed Pivot semantic capture and qualified owned native body output retain the caption; changing the property does not rewrite existing live worksheet body cells or change cache-value query constraints
Caption import accepts only an unqualified n attribute on the exact item/items/pivotField/pivotFields/pivotTableDefinition path in one standard SpreadsheetML namespace; foreign or qualified lookalikes do not enter the typed model
An omitted missing-member caption can be recovered from one proven last-level plain-text body role; its length is reserved before copying and it reaches the common model only after every body value, bound and represented style passes independent verification
This does not introduce a hardcoded localized missing-member label; ambiguous roles, edited captions, formulas and foreign metadata keep their existing ownership boundary
Direct authored Timeline-to-Strict output
A newly authored local Timeline and ordinary date criterion can save directly to Strict with the existing explicit xlsxStrictTimelineDateCriteria policy, without an intermediate ordinary save and reopen
The qualified profile has EventDate as an outer row and Region as an inner row or column, one ordinary SUM measure, no Slicer, and a last-level unfiltered ShowAll member domain; both workbook date systems retain absolute calendar dates and stored selection meaning
Ordinary file and stream writers, conversion reports under a caller read lease, checked output, reopen and repeated Strict saves use the same owned plan; Strict output drops Timeline UI into standard date criteria with the existing owned provenance
The source check distinguishes references just produced by the library's known worksheet extension builder from imported source references; generated IDs must match the expected owned graph and extension shape, while every retained raw reference is independently checked against its original relationship
Generated-reference checks are not cached as proof of imported ownership, and no raw relationship is fabricated or source graph mutated; foreign attributes, namespaces and wrong relationship identities retain their refusal behavior
Detached member-domain work shares cumulative conjunction reservations; an expanded member domain can contain more output rows than source records, so its conservative native-body reservation uses worksheet bounds rather than truncating its envelope at the record count
A public control with 3 source records and 66 Region members preserves all 64 retained empty-member labels through save and reopen, producing a 68 by 3 two-row report or a 4 by 68 row/column report within the unchanged default 64 MiB memory budget
Actual native Strict opening, refresh and saving cover totals of 20 and a genuinely empty 0 in both epochs and layout directions, with complete body bounds, value bits and number formats matching the independent native oracle; public controls additionally cover replacement-selection total 50 and individual date/member inclusion
Caller-edited headers, expected empty-member cells, exhausted memory and lossless incompatibility preserve source state and target bytes/position; dateCompatibility retains its explicit Degraded report and broader full-ISO-mode limitation
Outer or multiple expanded ShowAll levels, additional axes or measures, unrelated Slicer/filter interactions and remaining shared-fraction, inclusion, graph and legacy OA0 dependencies remain separate work
Multidimensional Strict date intersections
The same qualified imported layouts can retire Timeline UI and all owned helper fields, headers, formulas and page roles into standard Strict date conditions while preserving the ordinary predicate and stored selection provenance
The Timeline predicate is appended after helper retirement and before owned body materialization for both a single owner and shared owners; an ordinary condition after January 1 combined with a January 1 through January 2 selection includes January 2 and excludes January 3
Fixed date conditions constrain their own member domain even when ShowAll is set; only an unfiltered last-level ShowAll axis needs detached domain expansion, retaining the existing default resource limits
Repeated Strict conversion recognizes only the supported standard Strict or Transitional owner of known revision GUIDs and context-free extension envelopes; namespace declarations remain available until every qualified attribute is resolved, independent of attribute order
Current-composition file, stream, report, checked-output, native reopen and subsequent Strict-save controls retain exact record membership and complete body/style protection; unknown namespaces, invalid GUIDs and unrelated attributes remain protected
Actual native controls cover both date systems, shared distinct predicates, independent date selections and Strict-to-restored-UI lifecycle; ordinary file/stream and checked writers use the same verified overlays
Verified shared Strict output can also reopen and save as Transitional without restoring Timeline UI, retaining ordinary conditions and effective totals in both date systems; imported raw output is validated once against its actual unique preserved owner instead of repeating a non-output model serialization
The existing default work limit remains unchanged; actual raw-source identity, namespace, complete conjunction and report-body/style verification still apply, including after editing an ordinary condition
Outer or multiple expanded ShowAll levels, additional axes or measures, broader caption profiles, shared subsecond inclusion changes, graph mutation/remapping and the legacy OA zero-day calendar context remain active qualification work
Refresh timestamps and output dialect
TXLSPivotCache.RefreshedDate stores a supported common OA instant, independent of Date1904; numeric refreshedDate metadata follows the workbook epoch, while refreshedDateIso names a calendar instant and takes precedence when both attributes exist
Typed and imported epoch changes convert the numeric timestamp exactly once, and reused parser destinations clear absent refresh metadata instead of retaining stale values
Strict output writes schema-valid ISO refresh metadata with a bounded 12-digit fractional-second representation that reconstructs the same binary64 instant; the Pivot member serializer retains its separate precision policy
If the existing millisecond ISO importer cannot recover that exact timestamp, PivotRefreshTime reports Degraded and lossless checked output refuses; source timestamps are never rounded in place
During supported namespace conversion or Strict output, a standard unqualified Boolean workbookPr/@dateCompatibility is omitted outside the target core schema and reports DateCompatibility as Degraded; date1904 and represented calendar values remain intact, while lossless checked output refuses before touching the target and broader full-ISO compatibility mode is not preserved
Foreign lookalikes, nested content and literal values retain their identity; an invalid standard Boolean refuses, and authorized loss cannot bypass unsupported ownership or metadata
Native numeric/ISO timestamp evidence is tied to the actual system clock and wire values; the 1904 Excel COM getter alone is not used as a common-OA timestamp oracle
Empty retained Timeline intersections
A qualified single row-field, no-column-field report with one ordinary SUM measure and visible grand totals preserves an empty intersection without clearing the Timeline selection or ordinary date conditions
The output retains all cache records and members, the helper representation and Timeline UI; its native placeholder row and grand-total row contain blank aggregate cells rather than fabricated matching records
The visible unconstrained empty normal SUM total returns numeric zero through GetDataValue and worksheet GETPIVOTDATA, matching native formula evaluation while the underlying native aggregate range remains blank
Unknown measures, constrained unknown items, hidden totals and alternate aggregate or show-data-as shapes retain their existing refusal behavior; an expected owned blank cell may be absent in worksheet storage, while a changed scalar, formula, rich-text cell or foreign metadata still refuses
Other empty layouts, actually zero-record cache domains, shared-cache or multiple auxiliary fields, auxiliary predicates whose inclusion changes under quantization and new member-domain or rebind/removal dependencies remain separate qualification boundaries
Strict core reopen and output dialect
Supported ordinary and converted local Pivot workbooks recognize exact Strict office-document and document-property relationships, retain one drawing relationship owner, and use the selected writer's conformance value
Namespace conversion changes recognized namespace declarations and standard package relationship types, preserving literal cell text, formula strings, ordinary attributes, comments, CDATA and unknown relationship identities
The streaming namespace helper borrows immutable input and uses 8 KiB buffers, a 256 KiB tag limit, at most 128 attributes per parsed tag and a 65536-element depth limit; active namespace scope is bounded to 4096 bindings and 262144 UTF-16 code units, and an 8 MiB parser scratch reservation plus all classification and lookup work share the existing projection budgets
Unknown root relationships remain opaque during Transitional round-trip and can require Strict refusal; the qualified profile does not convert arbitrary retained extension graphs
Original Strict output packages pass the qualified official schema set; Transitional output retains an existing shared-string t@xml:space limitation in that schema set, so native Excel acceptance is distinct from full unmodified schema validation
Explicit Strict Timeline output
With Workbook.StrictOOXML = True, TXLSXWorkbook.StrictTimelineOutputPolicy selects a TXLSXStrictTimelineOutputPolicy: the default xlsxStrictTimelineReject rejects Timeline graphs, while opt-in xlsxStrictTimelineDateCriteria converts the supported profile without changing source selection or UI objects
Workbook.StrictOOXML := True;
Workbook.StrictTimelineOutputPolicy := xlsxStrictTimelineDateCriteria;
Report := Workbook.GetConversionReport(xlsConversionOpenXmlWorkbook);
try
if Report.HasLoss then
Status := Workbook.SaveAsChecked('strict-report.xlsx',
xlsxOpenXMLWorkbook, True);
finally
Report.Free;
end;
Inspect the report before authorizing loss: qualified conversion reports Timelines as xlsConversionDropped because output omits Timeline UI, cache parts, owned relationships and defined names; ambiguous ownership or unsupported semantics report xlsConversionUnsupported, which AllowLossy = True never overrides
An active selection becomes standard date criteria with an inclusive selected-day lower bound and an exclusive midnight after the last selected day; no Microsoft whole-day filter extension remains, and a cleared selection adds no replacement date filter
Supported local typed or imported bindings can connect shared-cache views with or without Timeline UI in both date systems; the selected date field must already be a row or column field, existing ordinary page filters remain independent, and Date1904 changes numeric epoch conversion without changing calendar selection
Conversion preserves the live source graph, raw retained metadata and original input files; the qualified date projection prepares supported report cells in its detached output overlay without implicitly refreshing live source caches or recalculating unrelated formulas
Ordinary SaveAs preflights Strict conversion before creating the ZIP; checked no-loss requests refuse before destination I/O, and an unsupported graph refuses even when loss is authorized
File output uses sibling temporary-file commit; Timeline stream output stages generation in an owned temporary file before copying to the caller stream, preserving bytes and position on conversion failure or cancellation before commit; a failure in the caller stream's final write can leave partial output under that stream's ordinary contract
Unknown attributes, namespaces, sibling extensions, unrelated drawing-anchor content, unrelated opaque graphs, client record predicates, unbound views and ambiguous imported raw identities refuse conversion; ordinary field names and formula strings containing namespace-like text retain their literal content
An active date field outside a row/column axis, an exclusive upper bound outside the supported calendar and styled physical left/right borders remain unsupported; Slicers, VBA, form controls, threaded comments and unrelated Strict extension features retain their own rejection boundaries
The conversion permits at most256 Timeline caches and4096 views per worksheet; a plan-local XML pre-scan bounds each metadata input to4 Mi UTF-16 code units, depth64,65536 cumulative elements,128 attributes per node and64 MiB cumulative conservative work, including repeated transformations
Only the explicit Strict date output context removes empty physical border edges, normalizes shared-string attributes for the official Strict schema and marks the workbook as Strict; this profile does not certify every arbitrary imported OOXML combination
Explicit native Slicer data-state refresh
function TXLSXSlicerCache.RefreshItemDataStates: Integer; overload; function TXLSXSlicerCache.RefreshItemDataStates( AMaxEvaluationSteps: Integer; ACancelFlag: PBoolean = nil): Integer; overload;
The operation evaluates and stages the complete native no-data vector, then commits under a workbook write guard; success returns 1, rejection returns -1 without changing serialized item flags or selections
It ignores this Slicer's own selection while intersecting other Slicer and Timeline selections, manual or page filters, supported aggregate filters and caller predicates; availability is the union across supported connected views
Selected historical members without eligible records receive the native no-data flag while retaining their selection; stable cache IDs, original item wire order and unrelated XML remain intact
The default cumulative step limit is 1000000; zero means unbounded steps, a negative value rejects and FormulaArrayMemoryLimit bounds metadata staging plus all connected-view previews cumulatively
Cancellation, callback exceptions or reentry, frozen views, unsupported bindings, exhausted budgets or changed evaluation state reject before committing flags; independent common-model changes made by caller callbacks remain the caller's changes and cause refresh rejection
TXLSXSlicerCache.CrossFilter reads and writes the native tabular cross-filter setting under the mutation guard; showItemsWithDataAtTop enables native data-first ordering without rewriting item wire order
ItemHasData remains a read-only query; saving does not call the evaluator or update no-data flags implicitly, so call RefreshItemDataStates explicitly before saving when native UI state must be refreshed
Advanced date-filter semantics
TXLSPivotFilter.UseWholeDay requests whole-day date comparisons for supported date filters; Timeline-generated preserved selections use it while ordinary date filters retain their previous time-sensitive behavior
See native Pivot output and read-only Slicer availability and local cache and Slicer lifecycle for the surrounding refresh and ownership contracts