I use the following code snipped to lock slides:
foreach (Slide normalSlide in slidesPresentation.Slides)
//Loop through the shapes on the normal slide
foreach (Shape normalShape in normalSlide.Shapes) {
if(normalShape is GroupShape) {
normalShape.Protection = ShapeProtection.LockSelect | ShapeProtection.LockPosition | ShapeProtection.LockAspectRatio | ShapeProtection.LockText;
//If group shape then individual lock for each shape inside it is required
LockGroupShape((GroupShape) normalShape);
}
else
//Apply protection on the shape
normalShape.Protection = ShapeProtection.LockSelect | ShapeProtection.LockAspectRatio | ShapeProtection.LockPosition | ShapeProtection.LockText;
}
This locks most of the shapes but not tables. I am able to edit text inside, move, resize tables. The powerpoint are saved in 2003 format (ppt). Is this a bug?
I am using the latest version of aspose.net total.
Hi Manoj,
Thanks for your interest in Aspose.Slides.
I have worked over the presentation file shared by you and have been able to observe the issue shared. An issue with ID SLIDESNET-33510 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.
We are sorry for your inconvenience,