Edit Header/Footer without Focus

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
DanielM
Posts: 16
Joined: Thu Mar 27, 2025 5:31 pm

Edit Header/Footer without Focus

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17805
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Edit Header/Footer without Focus

Post 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.
DanielM
Posts: 16
Joined: Thu Mar 27, 2025 5:31 pm

Re: Edit Header/Footer without Focus

Post by DanielM »

Do you have any demo that can help me understand how to search and replace header data?
Post Reply