Hello,
I want to automatically display the appropriate chapter name in the header section of a page. For example: Usually a book consists of number of chapters, the reader wants to know, in which chapter he is and looks at the header to find the current chapter. The chapter name is repeated in the header section on each page, until a new chapter begins.
What is the best way to implement this? I thought of generating a bookmark at the beginning of each chapter. In the OnGetSpecialText event I search from the current page back, until a page with a bookmark is found, then I set the header with the chapter-text belonging to the bookmark.
Is there a better idea, or an already existing solution/sample code to this?
Thanks