Native local Pivot views to OpenDocument
Explicit refresh and adoption
Version 2.384.372 admits a neutral default subtotal declaration on the sole data-only measure of an ordinary local Pivot, completing a finite native OOXML to typed ODS route through the existing public refresh and materialization APIs
The original single-measure profile requires two adjacent source columns, one string row field, one numeric measure and SUM, COUNT, AVERAGE, MIN or MAX aggregation; ordinary cache-group collections extend the original single-view route with independent and shared typed owners
The neutral mask is accepted only when the field is the single measure's actual field object, has the data-field axis and has no field items; row, column or page subtotals, custom or mixed masks and active subtotal items remain unsupported
Caller-visible caption and format decisions
Native result adoption requires ordinary scalar cells, so an original mixed-font rich caption remains outside that contract
If the caller chooses plain text instead, it must explicitly replace that cell's run formatting while keeping its desired text before adoption
PlainText := VarToWideStr(CaptionCell.Value);
CaptionCell.Value := Null;
CaptionCell.Value := PlainText;
This is an intentional caller appearance edit, without automatic rich-text flattening or lossless styled-caption support; assigning a nonempty plain Value alone retains the existing rich-text payload
The qualified native sources use format identifier 164 whose actual styles definition is General; declaring NumberFormat := 0 is appropriate here only after verifying that equivalence
No rule treats arbitrary native number-format identifiers as General, and non-General measure formatting retains its existing conversion refusal
Refresh the local cache and adopt current results
After any chosen caption edit, use the public route for the actual numeric field name and its known equivalent General format
if Workbook.RefreshPivotCache(Pivot.CacheId) <> 1 then
raise Exception.Create('The local Pivot source could not be refreshed');
Pivot.SetFieldAxis('Amount', xlpfaDataField);
Pivot.DataFields[0].NumberFormat := 0;
if Workbook.MaterializeNativePivotTable(Pivot, True) <> 1 then
raise Exception.Create('The native result could not be adopted');
Open and SaveAsODS do not refresh a raw cache or adopt result cells implicitly; successful explicit local refresh establishes the represented current cache and explicit adoption establishes current result ownership
The native default data-only subtotal mask remains unchanged, and supported OOXML transport retains its actual General resource declaration
After source edits, call RefreshPivotCache and MaterializeNativePivotTable again before export; COUNT still requires a current source/cache binding when a numeric edit leaves its displayed count unchanged
Results independently edited by the user are protected from overwrite, and stale source data, unknown extensions, unsupported axes or subtotal definitions and AVERAGE numerical disagreement remain refused
Conversion reports and qualification
The Pivot feature can report Preserved after this route while unrelated workbook opaque, protection or view metadata losses remain reported
Ordinary ODS saving succeeding is not a whole-workbook no-loss claim; use SaveAsChecked with losses disallowed when those remaining losses must prevent export
Actual library qualification covers all five genuine native aggregate inputs through source-stream release, public edits, ODS save, normal typed reopen and later source refresh
A separate two-file LibreOffice witness normally opens, locally refreshes, saves and reopens edited SUM and AVERAGE results, and actual native-saved ODS files retain typed cache/view behavior through the existing hidden-layout-marker profile
Those earlier single-measure native observations do not qualify broader layouts, arbitrary rich text, every numeric dataset or external connections; multiple measures have the separate version 2.384.406 contract
See ordinary ODS Pivot aggregates for the complete numeric, freshness, caption and ownership constraints
Multiple-measure native layout
See the version 2.384.406 multiple-measure profile for its source schema, two-header layout, caption, native-refresh and remaining interoperability boundaries
Ordinary row members
See the version 2.384.408 row-member profile for its source identities, NAME sorting, visibility, independent captions, explicit refresh and finite native qualification
Ordinary row data axes
See the qualified inner/outer measure profile for source identity, virtual axis position, independent row-grand captions, current results and format boundaries