次の方法で共有


“HeaderFooter (unknown member) : Invalid request.” Error, while setting slide footer text in PowerPoint 2007 via .Net

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";