facebooktwittermenuarrow-up

GemBox Support Forum

How we can update image in footer?

How we can update image in footer?

Try this:

var defaultHeader = document.Sections[0].HeadersFooters[HeaderFooterType.HeaderDefault];
var picture = (Picture)defaultHeader.GetChildElements(true, ElementType.Picture).First();
picture.PictureStream = new MemoryStream(File.ReadAllBytes("new-image.png"));