none
Open XML Excel to Detect Track Changes RRS feed

  • Question

  • Hi,

    Currently I am using the following code to detect Track Changes in an Excel file.

    using (var document = SpreadsheetDocument.Open(tempFilePath, false))
    {
        if (document.WorkbookPart.WorkbookRevisionHeaderPart != null
            && document.WorkbookPart.WorkbookRevisionHeaderPart
                .GetPartsCountOfType<WorkbookRevisionLogPart>() != 0)
        {
            hasChanges.HasTrackChanges = true;
        }
    }

    This works fine however I need to extend it to only detect Track Changes that have not been accepted. Do anyone have suggestions to how this could be done?

    Thanks

    Friday, August 22, 2014 12:16 PM

Answers