Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
UltraGridExcelExporter leaves old values in OpenXML Excel when I replace them in CellExportedEventHandler
posted

Hi,

I'm doing an excel export from a simple UltraGrid with one cell. In the CellExportedEventHandler I'm changing the value of the current cell to a new value. If I extract the resulting Excel file and open the .\UltraGridExcelExport_CellExported.xlsx\xl\sharedStrings.xml I can see the new value and the old value too. This is bad in two ways.

  1. If I'm replacing a lot of cell values, the resulting Excel file will be unnecessarily big.
  2. If I'm replacing characters, that are not readable by Excel, they are still in there and prevent opening the file.

Attached you can find a small example project.

It would be nice if someone knows a solution for this problem.

Kind regards

Sascha

UltraGridToExcelExport.zip