I am using Slides.Net 2.7.0.0 to open a powerpoint presentation, find a specific table and update text in that table. Everything worked perfectly using Visual Studio 2003, Windows XP and Office XP. Unfortunately, I have to switch all my projects to Visual Studio 2005, Windows Vista and Office 2007. After many days of headaches, I've got my project updating the text correctly. The problem now lies in saving the file after the update. When the Write function is executed it deletes the contents of the presentation. I have traced my code and determined that the Write function is definitely causing the deletion of the contents. Here are the calls I make to access the presentation and to save the changes I have made:
Dim pptDoc As Presentation = New Presentation(doc.FullName)
Lots of code that updates a portion of the presentation.
pptDoc.Write(doc.FullName)
Thanks,
Allison