Commit graph

3 commits

Author SHA1 Message Date
zmworm
4a5b82de37 fix(xlsx): propagate source numFmt to pivot cacheField
When building a pivot from a source range, resolve each source column's
StyleIndex to its numFmtId and stamp it onto the cacheField. Without
this, a date-formatted column (numFmtId 164, yyyy-mm-dd) rendered in
the pivot as raw OADate serials (45306, 45337, ...) instead of the
intended date format. Reuses ResolveColumnNumFmtIds already used for
DataField.NumberFormatId.
2026-04-19 10:24:25 +08:00
zmworm
579f214e14 fix(xlsx/pivot): fix Excel recovery errors on pivot table creation
- Add longText="1" to sharedItems when any string exceeds 255 chars
- Fix pivotCaches element order: InsertBefore fileRecoveryPr instead of AppendChild
- Add layout mode support (compact/outline/tabular) for pivot tables
- Add RefreshPivotCellsForView for re-materializing pivot cells before HTML rendering
2026-04-09 22:00:55 +08:00
zmworm
37219e24b4 refactor(xlsx/pivot): split PivotTableHelper into partial class files
Split the 7,635-line monolithic PivotTableHelper.cs into 7 partial
class files by functional area: core, render, cache, definition,
readback, set, and parse. Pure structural reorganization with no
API or behavioral changes.
2026-04-09 18:04:05 +08:00