Page 1 of 1

Detect new page added

Posted: Mon Feb 19, 2018 6:48 pm
by max_mediaworld
Hi, I am using SRichViewEdit, and loop the database content, input them to SRichViewEdit, around 20 pages.

How can I detech new page is added? I want to add TWO lines on the top of each page, not Header. Because they are different on every page.

Any idea.

Thank you very much!

Re: Detect new page added

Posted: Mon Feb 19, 2018 8:05 pm
by Steku
Hi,

not sure, but maybe this event can help you:
http://www.trichview.com/help-scalerich ... hanged.htm

Greetings...

Re: Detect new page added

Posted: Mon Feb 19, 2018 8:27 pm
by max_mediaworld
Thanks!
I tried, seem it trigger with delay. After text is inputed.

Is there another way to loop all pages? Then I can insert on the top lines.

Re: Detect new page added

Posted: Tue Feb 20, 2018 7:19 am
by Sergey Tkachenko
When you enter text, the following steps are performed
1) text is added
2) changed paragraphs are reformatted
3) if height is changed, document is repaginated

You cannot be notified about page insertion before the first step.

I am afraid I do not know a good solution for your problem, as I understand it. Any changes in a document may move automatic page breaks, including adding your two lines at the top of pages. Probably, inserting explicit page breaks may help.