Hi,
I'm trying to remove the footer from a slide but is not working, and if I try to save the file show as Corrupted.
the code that I'm using is:
int slnum = doc.Slides.LastSlidePosition;
for (int i = 1; i <= slnum; i++)
{
Slide sl = doc.GetSlideByPosition(i);
//sl.HeaderFooter = new HeaderFooter();
sl.HeaderFooter.FooterVisible = true;
sl.HeaderFooter.FooterText = string.Empty;
}
//this.RemoveFooter(doc.Slides);
//doc.MainMaster.Shapes.ToString();
if (doc.MainMaster != null)
{
foreach (Shape shape in doc.MainMaster.Shapes)
{
if (shape.TextFrame != null)
{
shape.TextFrame.AlternativeText = string.Empty;
shape.TextFrame.Text = string.Empty;
}
}
//doc.MainMaster.Shapes[4].TextFrame.Text= string.Empty
When I try to generate and Xps using this code the footer appears always,
Regards,