Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Symptoms:
While programming PowerPoint 2007 in .Net, when you try setting Footer text for slides, you may encounter the following error message,
Error Message:
HeaderFooter (unknown member) : Invalid request.
Cause
This is a known issue and has been reported to the product group
Resolution
To workaround this issue, first, we need to set the “Visible” property of the footer object to true and then we need to set the footer text.
Code:
PPTApplication.ActivePresentation.Slides[1].HeadersFooters.Footer.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue; //Here PPTApplication is object of PowerPoint.Application
PPTApplication.ActivePresentation.Slides[1].HeadersFooters.Footer.Text = "My Text";