How to update a Comment date


Just wondering if there’s anything special that needs to happen for changes to the Comment date to stick. If I use:

Aspose.Words.NodeCollection comments = wordDocument.GetChildNodes(Aspose.Words.NodeType.Comment, true);
foreach (Aspose.Words.Comment comment in comments)
    comment.Initial = "A";
    comment.Author = "Author";
    comment.DateTime = DateTime.Now;

The Initial and Author get updated, but the DateTime remains the original after saving (during debug it is changed, upon save it reverts to the original).

I note in the comments.xml the information looks correct:

<w:comment w:id="0" w:author="Author" w:date="2023-09-26T05:40:05Z" w:initials="A">

but in the commentsExtensible.xml it has the old date

<w16cex:commentExtensible w16cex:durableId="22CD74CC" w16cex:dateUtc="2020-07-30T06:33:00Z" />

Is there an extra command that needs to run to make it appear with the new DateTime?

Just for clarity, it looks like Aspose is reading the new date, but Word shows the old date in the comments pane.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25975

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25975) have been fixed in this Aspose.Words for .NET 23.11 update also available on NuGet.

1 Like