Pivot Timelines and Slicer data states
On offer 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 the 1900 and 1904 date systems alike; public date bounds keep their common calendar meaning whilst numeric wire values follow the Workbook epoch
Qualified active Timeline controls hold on to their selection bounds and support another selection mutation after an in-memory epoch flip; that focused control restores its starting epoch before saving, whilst separate same-epoch output profiles have actual native refresh evidence
The whole-day Timeline domain starts on January 1, 1900; the earlier Worksheet OA zero-day versus time-only ambiguity remains a separate date-context issue and gets no repair from this contract
Nearest-second output, inclusion-changing projection refusals and the documented native 1904 UI-label offset keep their explicit limits; stored bounds are never shifted so as 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 together with its required package identities; failure returns nil before any staged state is committed
TXLSXWorkbook.TimelineCaches exposes TXLSXTimelineCaches, complete with Count, zero-based Items[Index] and case-insensitive FindByName; these caches belong to the workbook
TXLSXTimelineCache.Name names the cache, SourceName names its source field and IsNonOlapPivot picks out the validated supported binding; imported unsupported caches keep their original XML
TXLSXTimelineCache.ConnectPivotTable(ATable: TXLSPivotTable): Integer connects a further owned view of the same PivotCache with a compatible date field; it returns 1 for success, an existing connection included, 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 running from 1 January 1900 through 31 December 9999 in ascending order
Both 1900 and Date1904 workbooks support local Timeline authoring and selection changes; fractional selection endpoints refuse, whilst source date values may hold a time-of-day and records throughout the selected end day stay eligible
TXLSXTimelineCache.SelectionActive, StartDate and EndDate expose the active bounds; ClearSelection: Integer wipes them without touching 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 has a manual whole-day filter: both 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 remain unchanged
Selections intersect other Slicers, manual or page filters and caller predicates; these operations neither refresh source caches nor recalculate formulas, and they rewrite no existing worksheet report cells
Date systems and stored date precision
Timeline selection endpoints keep 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 keeps 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 keep the represented binary date value
The common model keeps original binary64 timestamps and distinct members; native Pivot cache output uses seconds and can call for the detached precision projection described below, whilst native Timeline UI calibration remains a separate compatibility boundary
Native Date1904 Timeline UI and COM labels can display an offset even where stored calendar bounds and refreshed report amounts are correct; HotXLS rewrites no stored selection to imitate those labels
Imported Pivot ISO timestamps before December 30, 1899 keep their calendar date and time-of-day by way of 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 turn their negative OA fraction into a linear spreadsheet fraction when writing OOXML and turn 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 neither rewritten nor rounded
Ordinary negative numeric cells keep their numeric interpretation; the same calendar conversion keeps owned Pivot source-materialization identity lined up with the worksheet writer, and supported ordinary date equality keeps its result through repeated saving and reopening
Actual native file opening and saving preserve these numeric serials, but Excel shows pre-1900 calendar dates as #### and its COM date authoring can refuse 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 stay 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 the UI whilst keeping its shared cache and selection
TXLSXTimelines.Add(ACache: TXLSXTimelineCache; ARow1, ACol1, ARow2, ACol2: Integer): TXLSXTimeline takes an owned supported cache and an ordered one-based worksheet rectangle, handing back an owned view or nil
TXLSXTimeline.Name is read-only, Cache names its shared cache, and Caption changes the display label; Level takes 0 for years, 1 for quarters, 2 for months or 3 for days
TXLSXTimeline.SetBounds alters the one-based rectangle exposed by FromRow, FromCol, ToRow and ToCol; invalid geometry, unsupported bindings or grouped drawing geometry raise without any mutation taking place
TXLSXDrawingObject.Timeline gives back the associated view for drawing kind xlsxDrawingTimeline; direct unsupported drawing transformations stay guarded
Status := Workbook.RemoveTimelineCache(TimelineCache, xlsxSlicerPreserveCurrentSelection);
TXLSXWorkbook.RemoveTimelineCache(ACache: TXLSXTimelineCache; AMode: TXLSXSlicerRemovalMode): Integer stages connected filters, UI, names and package cleanup as one and returns 1 or -1
xlsxSlicerClearSelection takes out the selection; xlsxSlicerPreserveCurrentSelection keeps an active selection as a whole-day date comparison only where the date field already sits on a row or column axis in every connected view
An unused or page-only date field refuses selection-preserving removal atomically; use explicit selection-clearing removal where that behaviour is what you want
Imported filters normalise only once every connection, inherited namespace and exact owned-filter provenance has validated; opaque same-field attributes or children, foreign namespaces, external bindings and unsupported multiple-UI graphs keep their XML and refuse mutation
Native materialisation stages the current Timeline selection alongside 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
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 the Timeline loss and the XLSB values-and-styles subset refuses 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 turns known numeric wire operands from the source epoch, and output turns common operands into the target epoch for whole-day and time-sensitive comparisons alike; negative OLE time fractions compare in calendar order in the common query path
A direct operand edit refreshes an imported StrValue1 or StrValue2 alias only when that alias previously matched the old operand; conflicting explicit aliases refuse an edited preserved-filter rewrite
Supported imported filters with stable standard identities hold on to operand edits during ordinary saving and lossless checked saving by way of detached owned XML; changing the target epoch also preserves criterion inclusion after explicit native materialization
Saving an authored condition keeps the new condition; call MaterializeNativePivotTable when the saved worksheet report body has to reflect it before native refresh
Unrelated qualified root attributes and supplemental XML stay preserved, whilst unknown metadata inside an edited filter, unresolved numeric operands or comparison structure and ambiguous identities refuse ahead of output
Untouched unresolved wire criteria may round-trip unchanged; changing the target epoch or editing such criteria demands known calendar operands, and this increment widens neither ISO nor 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 by itself report date precision loss, and report or save mutates neither source values, aliases nor XML provenance
File and staged-stream pre-rejection leave existing destination contents, size and position alone; final caller-stream copy failures keep the normal I/O contract, and successful saving keeps normal style-compaction behaviour
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 alter its kind, UseWholeDay, name, description, evaluation order or its represented measure/member-property metadata
Output prepares owned standard nodes, keeps a replaced filter's native identifier and allocates fresh identifiers without collisions; unresolved identities, unknown metadata or unsafe changes to independent nondate filters refuse before destination writes
After changing the source range, call RefreshPivotCache explicitly; call MaterializeNativePivotTable when the saved worksheet body has to reflect growth, removal or an edited filter before native refresh
Operand-only edits preserve unrelated qualified XML, whilst structural edits demand the complete supported standard view profile; preparation shares the existing aggregate memory and work budgets and touches neither the live raw tree nor the stored selection
Imported dateBetween and dateNotBetween filters keep their actual inclusive or exclusive bounds; editing Value1 or Value2 hangs on to those comparisons, whilst explicitly assigning FilterType brings back 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 keep separate qualification limits
Subsecond Pivot and Timeline output
For supported local PivotTables, ordinary SaveAs and SaveAsChecked(..., True) get the same detached nearest-second projection ready for Open XML workbook, template and macro-enabled template output
The common model keeps its original worksheet timestamps, cache date bits, record identities and stored selection; a successful save keeps its established style-compaction and generation-update behaviour
GetConversionReport names changed members, member collisions, affected records and calendar-day changes as PivotDatePrecision degradation; SaveAsChecked(..., False) refuses any actual precision loss ahead of 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 stay intact and report cells are emitted by way of 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 refuses, a day carry that changes the stored Timeline selection included
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 refuse even where lossy output is authorized; reports name incomplete plans as PivotDateProjection unsupported
Known fixed numeric date criteria use common OLE calendar operands and explicit source/target epoch conversion, time-sensitive DateBetween in Date1904 workbooks included; unresolved lexical or calendar provenance still refuses 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 being copied across to the destination
Refused plans leave destination file contents and stream bytes, size and position alone; a caller stream failing during the final completed-stage copy keeps its own I/O failure contract
Projection preparation counts up cache snapshots, member maps, record matrices, query previews, connected masks, native report envelopes, sparse overlays and XML/order workspace cumulatively against the configured memory and work limits
Strict output with subsecond dates
The qualified local profile combines 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 pick 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 a second time, so an incorrect inclusive next-day midnight cannot hide behind 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 keeps its lexical meaning
Unsupported ownership, callbacks, metadata or changed record inclusion stay errors even with AllowLossy = True; successful saving keeps the normal style-compaction contract
The qualified local Strict profile can reopen and save once more 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 join forces with an active Timeline day selection under xlsxStrictTimelineDateCriteria; Strict output contains a single effective standard date interval and leaves out the Timeline UI and cache
The owned extension holds the original independent conditions and converted selection identity; import restores them only after their complete conjunction proves the emitted standard interval, inclusive and exclusive endpoints included
A cleared selection adds no condition, and changing the workbook date system keeps common OLE Automation calendar meaning; assigning a converted condition's Value1 or Value2 keeps its origin, whilst assigning FilterType explicitly re-authors it
The detached output stage refreshes supported saved report bodies after operand or selection edits without needing live rematerialization, exact-second dates included; source cache domains, record identities, dates, criteria and live report cells stay separate from the stage
Every connected view takes part in the owned cache plan; aggregate metadata and evaluation limits stay unchanged, and a retained three-view control overshoots the default one-million-step limit and refuses without changing source or destination
Checked output still demands 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 keep 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 by way of 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, two independent ordinary clauses with their original endpoint inclusivity included
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 keep the independent ordinary condition after source-date or Timeline-selection edits
Saving adds no helper cells, fields, members or formulas to the live source; reopening verifies complete owned identities before restoring the original conditions and stripping 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 keeping unrelated formulas and matching calculation-chain relationships and content types
Known custom format owner contexts and binary64 source/cache dates stay intact; report and refusal preserve source storage and raw graphs, whilst successful saving keeps 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 ahead of destination publication; refused streams preserve bytes, size and position
The native 1904 Timeline wire/getter frame is normalized only once its selection corresponds exactly to the supported ordinary filter frame; the original raw selection stays retained, and no blanket epoch shift lands on arbitrary imported Timeline dates
A verified compact native report can keep its effective row and grand-total captions where the XML leaves those attributes out; each caption role has to 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 keeps the existing Grand Total fallback
Retained Timeline UI with second-precision projection
The qualified single-owner Transitional auxiliary profile combines 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 just once
The live worksheet keeps its original fractional date values, whilst source cache date bits, record identities, ordinary predicates and stored selection retain their meaning; report and plan construction stay 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 kept in place; a fractional threshold that changes inclusion remains unsupported
Ordinary SaveAs uses the existing allow-lossy behaviour, and GetConversionReport reports actual second-precision degradation; SaveAsChecked with False refuses that loss ahead of output, whilst 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, dodging Excel's decimal formula truncation during saving
The numeric calendar conversion sidesteps an intermediate decimal formatting/reparse step; integer dates stay integer literals, and subnormal or out-of-profile exponents refuse rather than approximating the operand
Known and-interval-v1 helpers keep 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 appears
Actual native refresh keeps the qualified intersection and source fractions in both date systems, and exact operand bits and formula structure come through native save/reopen; shared/multiple auxiliary owners and changed-inclusion thresholds stay 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 covers 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 keep 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 stay unchanged, and the source range shrinks from A1:C5 to A1:B5 in that example
Explicitly restoring the Timeline creates the owned third field and helper source afresh without mislaying 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, every cell token, bound, caption role and represented style included
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, whilst successful saving keeps normal style compaction
Known native revision GUIDs keep their original namespaces with scoped mc:Ignorable declarations; unknown attributes, foreign lookalikes, invalid GUIDs and unrelated revision graphs stay unsupported
Relationship provenance is captured with bounded metadata during Open; report/save performs no implicit source or external reads, and output uses freshly allocated relationship identities
The existing aggregate work and memory limits govern complete ownership verification and detached construction; repeated exact XML ownership checks share a bounded plan-local result
Twenty fresh integration packages keep every frozen file-part byte; their 176 primary parts and OPC graph checks tell raw XSD diagnostics apart 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 the remaining growth/removal/empty-layout dependencies keep their separate limits
Shared Timeline views and helper ownership
Supported views of one local Pivot cache can hold distinct ordinary date predicates through independently owned Boolean helpers in one output cache schema; passive views keep their ordinary unfiltered role
Views may 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 group-wise; it then independently recomputes the materialized report body and represented styles ahead of capturing output ownership
A body or style mismatch clears that output-ownership snapshot and blocks later auxiliary takeover or output; it rolls back nothing of the 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 whilst 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 displaces the old selection instead of intersecting with it, whilst original user conditions stay active
Edited or ambiguous selection provenance refuses takeover without removing user predicates; reports and refused file or stream saves preserve source state and destination bytes, extent and cursor
Report ownership compares complete represented styles, gradient stops and exact numeric values included; both semantic gradient arrays are charged ahead of 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 keep their original namespace bindings through the qualified output dialect
The qualified shared layout has one date row field, no column fields, one measure and neither Slicer nor unrelated filters; detached output suppresses an extra empty measure row without touching the source ShowAll value
Qualified multidimensional Timeline layouts
Retained Timeline intersections also cope with a single measure with two row fields or one row field and one column field when the other axis fields have ShowAll switched off; the date field remains a row field
Detached output preserves the original date ShowAll policy, ordinary date conditions and stored selection whilst 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, a missing colHeaderCaption can be recovered into the existing ColHeaderCaption property from its unique nonempty plain-text header cell
The caption copy is bounded and reserved ahead of allocation, and adoption happens only after every report value, bound and represented style matches; formulas, ambiguous roles, edited bodies or captions and foreign metadata grant no 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 into real Strict OOXML, retaining missing parents and their real child member domains in both date systems
The explicit Strict policy drops Timeline UI and retires its verified helper fields whilst preserving the effective intersection as standard Pivot criteria; source date bits, cache records, captions, ordinary criteria and the stored selection meaning stay unchanged
The existing owned member-domain role also recognizes this three-row profile when rows are tabular, subtotals are switched off, there is one data field and no unrelated Slicer owner; field-role inspection reserves eight existing work units per field
Checked-save reports name the dropped UI, lossless file and stream requests refuse ahead of target publication, and read leases, caller-edited body values or styles, unknown metadata and low-memory failures keep 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 once more
Retiring helper page fields clears their page-field cells above the report without moving the report body; complete independent comparisons keep 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 call for 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, whilst 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 where the child has ShowAll switched off
An observed parent whose child has ShowAll switched off keeps its actual visible children, whilst ShowAll switched on for 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 keep the qualified body values and number formats
Prefix hashing, collision probes, retained keys and member visits consume the existing output budget ahead of work or allocation; malformed or changed ownership, unsupported styles, unknown extensions and exhausted resources keep the source and existing destination through the established transaction
A three-record control with six retained Region members and four Product members yields 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 drains the default cumulative work budget on its later report whilst proving the imported body/styles and reserving the conservative layout envelope; this resource limit has not been swept under the carpet by raising defaults or reducing charges
More general axis arrangements, grouped or calculated descendants, subtotals, wider shared-cache combinations and the remaining date lifecycle stay separate work; Strict conversion of this hierarchy uses the qualified profile above
Retained empty-member domains
The qualified two-field layouts also take 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, working with one ordinary SUM measure
Missing members and members without included records keep 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 keeps only its native grand-total row, whilst a row/column intersection keeps 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 ahead of 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 keep full body bounds, scalar value bits and number formats through refresh, selection replacement and empty intersections; report and refused 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 touching the underlying cache value or member identity |
HasCaption | Tells an absent caption apart from an explicit empty string |
ClearCaption | Brings back 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 rewrites no existing live worksheet body cells and changes no 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 never 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 ahead of copying and it reaches the common model only after every body value, bound and represented style passes independent verification
This introduces no 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 straight to Strict with the existing explicit xlsxStrictTimelineDateCriteria policy, with no intermediate ordinary save and reopen
The qualified profile places EventDate as an outer row and Region as an inner row or column, one ordinary SUM measure, no Slicer, plus a last-level unfiltered ShowAll member domain; both workbook date systems keep 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 work from the same owned plan; Strict output drops Timeline UI into standard date criteria with the existing owned provenance
The source check tells references just produced by the library's known worksheet extension builder apart from imported source references; generated IDs must match the expected owned graph and extension shape, whilst 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 keep their refusal behaviour
Detached member-domain work shares cumulative conjunction reservations; an expanded member domain can hold more output rows than source records, so its conservative native-body reservation uses worksheet bounds rather than chopping its envelope at the record count
A public control with 3 source records and 66 Region members keeps 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 across 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 plus individual date/member inclusion
Caller-edited headers, expected empty-member cells, exhausted memory and lossless incompatibility preserve source state and target bytes/position; dateCompatibility keeps 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 the remaining shared-fraction, inclusion, graph and legacy OA0 dependencies stay 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 whilst preserving the ordinary predicate and stored selection provenance
The Timeline predicate is appended after helper retirement and before owned body materialization for a single owner and shared owners alike; an ordinary condition after January 1 combined with a January 1 through January 2 selection takes in January 2 and leaves out January 3
Fixed date conditions constrain their own member domain even where ShowAll is set; only an unfiltered last-level ShowAll axis needs detached domain expansion, keeping 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 stay available until every qualified attribute is resolved, attribute order notwithstanding
Current-composition file, stream, report, checked-output, native reopen and subsequent Strict-save controls keep exact record membership and complete body/style protection; unknown namespaces, invalid GUIDs and unrelated attributes stay protected
Actual native controls cover both date systems, shared distinct predicates, independent date selections and the Strict-to-restored-UI lifecycle; ordinary file/stream and checked writers work from the same verified overlays
Verified shared Strict output can also reopen and save as Transitional without restoring Timeline UI, keeping 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 stays untouched; actual raw-source identity, namespace, complete conjunction and report-body/style verification still apply, after editing an ordinary condition included
Outer or multiple expanded ShowAll levels, further 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, independently of Date1904; numeric refreshedDate metadata follows the workbook epoch, whilst refreshedDateIso names a calendar instant and takes precedence where both attributes exist
Typed and imported epoch changes convert the numeric timestamp exactly once, and reused parser destinations clear absent refresh metadata instead of holding on to 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 keeps its separate precision policy
Should the existing millisecond ISO importer fail to 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 left out outside the target core schema and reports DateCompatibility as Degraded; date1904 and represented calendar values stay intact, whilst lossless checked output refuses ahead of touching the target and broader full-ISO compatibility mode is not preserved
Foreign lookalikes, nested content and literal values keep 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 never serves 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 keeps an empty intersection without clearing the Timeline selection or ordinary date conditions
The output keeps every cache record and member, the helper representation and Timeline UI; its native placeholder row and grand-total row hold 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 whilst the underlying native aggregate range stays blank
Unknown measures, constrained unknown items, hidden totals and alternate aggregate or show-data-as shapes keep their existing refusal behaviour; an expected owned blank cell may be absent in worksheet storage, whilst 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 stay 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, keep one drawing relationship owner, and use the selected writer's conformance value
Namespace conversion alters 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 capped at 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 stay opaque during Transitional round-trip and can call for Strict refusal; the qualified profile converts no arbitrary retained extension graphs
Original Strict output packages pass the qualified official schema set; Transitional output carries an existing shared-string t@xml:space limitation in that schema set, so native Excel acceptance is a different thing from full unmodified schema validation
Explicit Strict Timeline output
With Workbook.StrictOOXML = True, TXLSXWorkbook.StrictTimelineOutputPolicy picks a TXLSXStrictTimelineOutputPolicy: the default xlsxStrictTimelineReject refuses Timeline graphs, whilst 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 leaves out 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 survives, 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 stay independent, and Date1904 changes numeric epoch conversion without changing calendar selection
Conversion leaves the live source graph, raw retained metadata and original input files untouched; 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 ahead of destination I/O, and an unsupported graph refuses even where 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, keeping 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 carrying namespace-like text keep 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 stay unsupported; Slicers, VBA, form controls, threaded comments and unrelated Strict extension features keep their own rejection boundaries
The conversion allows at most256 Timeline caches and4096 views per worksheet; a plan-local XML pre-scan caps each metadata input at4 Mi UTF-16 code units, depth64,65536 cumulative elements,128 attributes per node and64 MiB cumulative conservative work, repeated transformations included
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 certifies no 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 whole native no-data vector, then commits it under a workbook write guard; on success it returns 1, rejection returns -1 without touching serialised item flags or selections
It ignores this Slicer's own selection whilst 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 pick up the native no-data flag whilst keeping their selection; stable cache IDs, original item wire order and unrelated XML stay intact
The default cumulative step limit is 1000000; zero means unbounded steps, a negative value is refused 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 are refused before flags are committed; independent common-model changes made by caller callbacks stay the caller's changes and trigger refresh rejection
TXLSXSlicerCache.CrossFilter reads and writes the native tabular cross-filter setting whilst holding the mutation guard; showItemsWithDataAtTop switches on native data-first ordering without rewriting item wire order
ItemHasData stays a read-only query; saving neither calls the evaluator nor updates no-data flags implicitly, so call RefreshItemDataStates explicitly before saving whenever native UI state must be refreshed
Advanced date-filter semantics
TXLSPivotFilter.UseWholeDay asks for whole-day date comparisons on supported date filters; Timeline-generated preserved selections use it whilst ordinary date filters keep their previous time-sensitive behaviour
See native Pivot output and read-only Slicer availability and local cache and Slicer lifecycle for the refresh and ownership contracts around them