Hello everyone. I have this problem when generating a table of contents. It is happening to me that when the document is exported to Word, for some reason (or if it is the correct behavior) the text is scrolling down on the next page. What I want to achieve is that the TOC can be generated if scrolling down occurs or, failing that, eliminate the space between the phrase "GENERAL CHARACTERISTICS" and the top of the header of that page. The document is already created and is imported into the application. I'm using an example that I found in the forum (I don't remember the name of the person, credits to him) and I'm adapting it to what I need
I have been researching the way to do it and I think with "Multi-Range Selection"
(https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/features/selection?&_ga=2.154034736.904289798.1655964538-1262658420.1654800489#members-of-documentselection) between the phrase and the last element of the TOC would work but I haven't managed to capture the last element of the TOC, so I'm stuck with that part. Any idea or way I can take to eliminate that generated (dynamic) space between the phrase the following sheet and the header of that page.
Attached functional solution for testing and images.
Thank you very much