We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

User name and initials

Does aspose supports to set user name and / or initials during adding comments? Currently we creating some annotation, and comment it(programmaticaly), but we can’t set annotation creator, just text and datetime stamp. So, comments looks like this:1.png (15.1 KB)

But in Visio we can set user name and initials (in options):2.png (15.8 KB)

As result, reply or comment has the author: 3.png (6.8 KB)

It’s would be sufficient if we will can specify just user name only.


Thank you for contacting support.

We are afraid that specifying a user name on a comment may not be supported at the moment. However, an enhancement ticket with ID DIAGRAMNET-51503 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.


We have further investigated DIAGRAMNET-51503 and like to request you to to set author for a comment as under:

 var firstPageAnnotations = diagram.Pages[0].PageSheet.Annotations;
 foreach (Aspose.Diagram.Annotation annotation in firstPageAnnotations)
    annotation.ReviewerID.Value = 1;

And if you want to change author’s name, please use below line of code:

diagram.DocumentSheet.Reviewers[0].Name.Value = "tom";

We have attached generated VSDX file for your kind reference Comments.zip. We hope this will be helpful.

Thanks. It works.
But how I can create one comment from one reviewer, and second comment from another reviewer in empty document. I cant create new reviewer because constructor of Reviewer class is private.


Thank you for your kind feedback.

We are looking into your requirements and will get back to you with our findings soon.


We would like to update you that a feature request ticket with ID DIAGRAMNET-51504 was logged in our issue management system to support creation of a new Reviewer. This ticket has been resolved and requested feature will be supported in Aspose.Diagram for .NET 18.8. We will notify you as soon as the product will be released.

The issues you had found earlier (filed as DIAGRAMNET-51504) have been fixed in this release.


Thank you for being patient.

With Aspose.Diagram for .NET 18.8, you can add a new reviewer with different name to achieve your requirements. Please use below code snippet in your environment and then share your kind feedback with us.

Reviewer viewer = new Reviewer();
viewer.Name.Value = "test";
viewer.ReviewerID.Value = 3;

We hope this will be helpful. Please feel free to contact us if you need any further assistance.

1 Like

www.png (5.5 KB)
Perfect. This is what we want.:metal:

1 Like


Thank you for your kind feedback.

We are glad to know that your requirements are fulfilled. Please keep using our API and in event of any further query, feel free to contact us.