HotXLS Docs

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 materialisation APIs

The complete profile still requires two adjacent source columns, one string row field, one numeric measure, one materialised view and SUM, COUNT, AVERAGE, MIN or MAX aggregation

The neutral mask is accepted only when the field is the single measure's actual field object, has the data-field axis and no field items; row, column or page subtotals, custom or mixed masks and active subtotal items stay unsupported

Caller-visible caption and format decisions

Native result adoption requires ordinary scalar cells, so an original mixed-font rich caption sits outside that contract

If the caller chooses plain text instead, it must explicitly replace that cell's run formatting whilst 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 on its own retains the existing rich-text payload

The qualified native sources use format identifier 164 whose actual styles definition is General, so declaring NumberFormat := 0 is appropriate here only after checking that equivalence

No rule treats arbitrary native number-format identifiers as General, and non-General measure formatting keeps 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 with 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; a successful explicit local refresh establishes the represented current cache and explicit adoption establishes ownership of the current results

The native default data-only subtotal mask remains unchanged, and supported OOXML transport keeps its actual General resource declaration

After source edits, call RefreshPivotCache and MaterializeNativePivotTable again before export; COUNT still demands 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 stay refused

Conversion reports and qualification

The Pivot feature can report Preserved after this route whilst 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 block export

Actual library qualification covers all five genuine native aggregate inputs across source-stream release, public edits, ODS save, normal typed reopen and a 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 behaviour through the existing hidden-layout-marker profile

The observed native values and metadata do not qualify wider layouts, arbitrary rich text, every numeric dataset, multiple measures or external connections

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, captions, native refresh and the 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 the 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 the format boundaries