Is possible add text (field) in header where its content is different for each page?
1 Answer, 1 is accepted
0
Boby
Telerik team
answered on 14 May 2012, 09:34 AM
Hi Leonardo,
Actually, headers and footers are properties of the section. You can have up to three different headers/footers per section - for odd, even and first page:
Section section = new Section();
RadDocument document = new RadDocument();
document.Sections.Add(section);
// this is the default header
section.Headers.Default = new Header()
{
Body = this.CreateHeaderFooterDocument("Default Page Header")
};
section.Headers.Even = new Header()
{
Body = this.CreateHeaderFooterDocument("Even Page Header")
};
// this must be set in order even headers/footers to be visible