Page 1 of 1

about pagebreaks problem..

Posted: Thu Oct 12, 2006 9:31 am
by bojung
i use delphi3 and richview version 1.9.24

i want function pagebreaks and then i make button

if button is click then
richviewedit.clearsoftpagebreaks;
rvprint.assignsourse(richviewedit);
rvpritn.formatpages(rvdoall);
richviewedit.assignsoftpagebreaks(rvprint);
richviewedit.update;
end;

but when richviewedit.onchange pagebreaks is clear ..

i try same code into richviewedit.onchange but error

error message : canvas not draw ..

how remain pagebreaks.. plz..

thanks..

Posted: Fri Oct 13, 2006 10:04 am
by Sergey Tkachenko
This code works for me, when I placed it RichViewEdit1.OnChange of the ActionTest demo.
Can you give me step-by-step instructions how to reproduce the problem?

formatpages

Posted: Fri Oct 13, 2006 10:38 am
by bojung
i use delphi 3.

i am not change code. only i change richview editor verison upgrade..

i use this code ..
when richvieweditor.onchage and RichViewEdit1VScrolled function

i think when formatpage happened.

ps ) delphi3 and richview1.6.25 is good

i send e-mail

Posted: Sun Oct 15, 2006 11:10 am
by bojung
i send e-mail

this mail is samplie program..

i sent e-mail

Posted: Wed Oct 18, 2006 9:40 am
by bojung
i sent e -mail

mail address : richview@qmail.com

Posted: Wed Oct 18, 2006 4:02 pm
by Sergey Tkachenko
I received it. I'll test your example and will answer you closer to the end of this week.

i watting your reply ..

Posted: Mon Oct 23, 2006 10:25 am
by bojung
i watting your reply ..

Thank you for reading my e-mail.

Posted: Tue Oct 24, 2006 9:56 am
by bojung
Thank you for reading my e-mail.

I received your mail last week. In your mail, your answer would be last weekend.
But I do not yet received your answer.

Is problem serious?
I have no time. Please help me.

Posted: Tue Oct 24, 2006 8:26 pm
by Sergey Tkachenko
I am sorry for delay.
This is because a bug in the "fast format" mode.
Quick fix: exclude rvoFastFormat from rvp.rv.Options:

Code: Select all

    rvp := TRVPrint.Create(Self);
    rvp.rv.Options := rvp.rv.Options-[rvoFastFormatting];
    ...
The "fast format" mode will be fixed in the next update.

PS: this bug only occurs in Delphi 3