Hi there,
I am trying to change the LastSavedTime property of a .ppt Presentation file, but apparently the WriteBindedPresentation method doesn’t work as expected (it does with .pptx files only).
Please see the code example below, any idea?:
Presentation presentation = new Presentation(s);
s.Position = 0;
IPresentationInfo _info = PresentationFactory.Instance.GetPresentationInfo(s);
Console.WriteLine("Presentation LastSavedTime value -> " + presentation.DocumentProperties.LastSavedTime);
//edit a property
var props = _info.ReadDocumentProperties();
props.LastSavedTime = DateTime.Now.AddYears(-10); //ten years ago
//save presentation
presentation.Save(output, Aspose.Slides.Export.SaveFormat.Pptx);
//add edited properties after save
_info.WriteBindedPresentation(output);
//check if property has been changed
output.Position = 0;
Presentation ppp = new Presentation(output);
Console.WriteLine("Edited presentation LastSavedTime value -> " + ppp.DocumentProperties.LastSavedTime);
//expect to get the edited date, but but the original date.
//expect to get the edited date, but but the original date.
Thanks,
Giulio