Page 1 of 1

Different heading

Posted: Thu Apr 13, 2017 5:38 pm
by tiagosis
Hello, how can I get different headers in the same document?
I'm using srichviewedit

Re: Different heading

Posted: Thu Apr 13, 2017 6:48 pm
by Sergey Tkachenko
Different heading for different pages?
SRichViewEdit supports headers for the first page, odd and even pages.
If you want to enable them in user interface of RichViewActions, you can set checkboxes "special headers and footers for the first page" and "special headers and footers for odd and even pages".
If you want to enable them in code, assign True to SRV.PageProperty.TitlePage and SRV.PageProperty.FacingPages.

Re: Different heading

Posted: Mon Apr 17, 2017 1:13 pm
by tiagosis
Thanks for replying, in fact what I need is to insert a variable where I can change its value in the header of each page, as if it were an accountant where I freely assign its contents. is this possible?

Re: Different heading

Posted: Mon Apr 17, 2017 7:40 pm
by Sergey Tkachenko
Sorry, no. There are page number and page count fields, otherwise, headers are identical for all pages where they are displayed.

Re: Different heading

Posted: Mon Apr 17, 2017 7:41 pm
by Sergey Tkachenko
You can draw your data on page in OnPaintPage event

Re: Different heading

Posted: Mon Apr 17, 2017 8:31 pm
by tiagosis
Could you show me an example code of how to do this on the onpaintpage with the count in the header?

Re: Different heading

Posted: Tue Apr 18, 2017 4:50 pm
by Sergey Tkachenko
You can see the demo in ScaleRichView\Demos\CustomDraw\Header and Footer folder.