Text lines are wrapped on separate pages (Page Break Action)

General TRichView support forum. Please post your questions here
Post Reply
Vitalii
Posts: 61
Joined: Sat Oct 20, 2018 2:55 pm

Text lines are wrapped on separate pages (Page Break Action)

Post by Vitalii »

Hi,
I have trouble with Page Break action. When I apply it, text lines are wrapped on each next page(s), see screenshot.
Strange, but there is no effect when I checked "Keep lines together" and "Keep with next".
I'm using Style Templates in SRichViewEdit.

Please help)
Attachments
2022-05-14_181449.png
2022-05-14_181449.png (66.1 KiB) Viewed 7587 times
Sergey Tkachenko
Site Admin
Posts: 17522
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Sergey Tkachenko »

Do you mean that if you apply this action one time, it adds many page breaks?
Vitalii
Posts: 61
Joined: Sat Oct 20, 2018 2:55 pm

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Vitalii »

Yes. I typed a long paragraph of text in a few lines. Then I set cursor to the start position and press the button with TrvActionInsertPageBreak. I do not perform any other (special) formatting actions (
Vitalii
Posts: 61
Joined: Sat Oct 20, 2018 2:55 pm

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Vitalii »

Any updates on the issue?
Sergey Tkachenko
Site Admin
Posts: 17522
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Sergey Tkachenko »

I confirm the bug.
It will be fixed in the next update.
Quick fix: open SclRView.pas, find

Code: Select all

      ElementNotFit :=
        RichViewEdit.PageBreaksBeforeItems[srvCurItem.ItemNo] or
change to:

Code: Select all

      ElementNotFit :=
        ((CurDrawItem.Offs <= RichViewEdit.GetOffsBeforeItem(srvCurItem.ItemNo)) and
        RichViewEdit.PageBreaksBeforeItems[srvCurItem.ItemNo]) or
Vitalii
Posts: 61
Joined: Sat Oct 20, 2018 2:55 pm

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Vitalii »

Thanks!
Sergey Tkachenko
Site Admin
Posts: 17522
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Text lines are wrapped on separate pages (Page Break Action)

Post by Sergey Tkachenko »

Fixed in the todays update (ScaleRichView 11.3)
Post Reply