Page 1 of 1

Edit Header/Footer without Focus

Posted: Fri Apr 18, 2025 4:26 pm
by DanielM
Hi,

I want to make a DLL with TSRichViewEdit that will not be visual, I load RVF files, process the text, then I want to process (find & replace) the data in the Header and Footer. How could I process the data in the Header and Footer without entering the editing "StartEditing(srvrveHeader)" without having focus gives an error.

Re: Edit Header/Footer without Focus

Posted: Fri Apr 18, 2025 5:03 pm
by Sergey Tkachenko
If you want to edit headers and footers using editing operations, activating editing is the only option.
But if you want to use viewer-style methods, you can use SRichViewEdit.Subdocuments[] property.
When modifying a subdocument, make sure that it is not currently edited. Otherwise, when the user finish editing a header/footer, your changes will be overridden.

Re: Edit Header/Footer without Focus

Posted: Fri Apr 18, 2025 5:24 pm
by DanielM
Do you have any demo that can help me understand how to search and replace header data?