Even after setting UpdateDateTimeFields = True the auto date fields in my presentation are not updated to the current date and time. How do I refresh the values?
When I access the text property of an object that contains an autodate field it still shows an old datetime value.
Dim oPPresent As Presentation = New Presentation(strOutPath)oPPresent.UpdateDateTimeFields = True(...)Dim shpex As AutoShape = CType(oPPresent.Slides(inti).Shapes(shapidx), AutoShape)Console.WriteLine(shpex.TextFrame.Text)
When the current system time is 10/3/2014 12:05 PM the object's Text property yields:
"This shape always shows the current date and time 10/3/2014 11:30:15 AM for testing."
The point of the to find and remove automatically updated date fields. When those fields exist within surrounding text I am testing testing the entire string value for portions that match that current DateTime.Now() value. So I need to force the presentation to update those fields before I access the text property.
Thank you.