Detect new page added

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
max_mediaworld
Posts: 4
Joined: Mon Feb 19, 2018 6:05 pm

Detect new page added

Post 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!
Steku
Posts: 9
Joined: Fri Dec 13, 2013 4:01 pm

Re: Detect new page added

Post by Steku »

Hi,

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

Greetings...
max_mediaworld
Posts: 4
Joined: Mon Feb 19, 2018 6:05 pm

Re: Detect new page added

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

Re: Detect new page added

Post 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.
Post Reply