I’m using the code below on the pptx file attached to try and update the footer text for the powerpoint file. I followed the steps as detailed here; http://www.aspose.com/docs/display/slidesnet/How+to+Add+Header+Footer+in+a+Presentation
I’m currently running up against two issues;
- The SetVisibilityOnTitleSlide seems to be over-riding any settings I apply using IsSlideNumberVisible and IsDateTimeVisible so even if those 2 are set to false and I only want the footer displayed, if SetVisibilityOnTitleSlide is true then all 3 parts of the footer are displayed. The rest of the file is rendered correctly with only the specified elements rendered
- SetFooterText appears to be doing nothing, I pass in a string value and for the sake of testing, I have hard-coded a value and both times the string seems to be ignored and I’m left with an empty footer container.
Also, in the link above, you appear to be calling a Write method but from what I can tell Version 184.108.40.206 only has the Save method to commit any changes to files?
Presentation pres = new Presentation(path);
pres.UpdateDateTimeFields = true;
pres.UpdateSlideNumberFields = true;
pres.HeaderFooterManager.IsDateTimeVisible = false;
pres.HeaderFooterManager.IsSlideNumberVisible = false;
pres.HeaderFooterManager.IsFooterVisible = true;