Hi Telerik.
Attempting to create a Header with your documentation. Link: Headers and Footers
The example code writes:
RadFlowDocument document = new RadFlowDocument();
document.Sections.AddSection();
document.Sections.First().Headers.Add(); // Creates the default Header.
document.Sections.First().Headers.Add(HeaderFooterType.First);
document.Sections.First().Headers.Add(HeaderFooterType.Even);
However I get the errorcode:
'object' does not contain a definition for'Headers'and no accessible extension method 'Headers' accepting a first argument of type
'object'could be found (are you missing a using directive or an assembly reference?)
Am I doing something wrong?
Hi Stefan,
I am glad that you have a solution now.
I have tested the code from your post and the documentation and all works as expected on my side. Would it be possible to share the exact line where the exception occurs?
I am looking forward to your reply.