When a shape is locked in Cells, user is able to remove that shape in 0365 online edit

I added a Shape to the worksheet and locked that shape using

wordArt.setLockedProperty(ShapeLockType.SELECTION, true);
wordArt.setLockedProperty(ShapeLockType.SHAPE_TYPE, true);
wordArt.setLockedProperty(ShapeLockType.MOVE, true);
wordArt.setLockedProperty(ShapeLockType.RESIZE, true);

After saving the document, user can not delete the shape in desktop as offline.
Uploading the same document to the 0365 and edit online, user is able to remove the shape.

Please suggest how to restrict deleting the shape in 0365 online edit?

Attached the test files and shape added files for reference.TestFilesWIthShapeLocked.zip (35.5 KB)

We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-43156 – Locking WordArt Watermark does not work for Office 365


We found it should be the issue that online office does not support all locking properties for a shape. This is not an issue with Aspose.Cells APIs.

Do we have any improvement on locking support for online edit in newer versions.


As we told you earlier it is the behavior of office 365 which does not support all locking properties for a shape. There is nothing to do with Aspose.Cells APIs for it. The ticket is already closed with status “Won’t Fix”.