Pending Review
Last Updated: 03 Dec 2026 21:58 by William
William
Created on: 03 Dec 2026 21:58
Category: Telerik Document Processing
Type: Bug Report
0
Shared-string count does not match the worksheet

When I export the same CSV sample to XLSX with Telerik's `XlsxFormatProvider`, the shared-string metadata does not match the worksheet.

How to reproduce

From the folder containing "TelerikCsvXlsxRepro.csproj", run using:

dotnet run

The program imports "sample.csv" with "CsvFormatProvider" and exports it with "XlsxFormatProvider". The sample and code are the same as in the confirmation-number report.

What I see

The worksheet has 12 cells referring to the shared-string table. The table contains six `<si>` entries and says `count="6"`. It does not include `uniqueCount`.

What I expected

For this sample, `count` should be 12 and `uniqueCount` should be 6. Microsoft's Open XML documentation says these attributes describe the total and unique string counts, and requires the other attribute when either one is present:

https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.sharedstringtable?view=openxml-3.0.1

The repro folder includes the project, sample, generated workbook, and run output so the XLSX parts can be checked directly.
0 comments