about pagebreaks problem..

General TRichView support forum. Please post your questions here
Post Reply
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

about pagebreaks problem..

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

Post 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?
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

formatpages

Post 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
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

i send e-mail

Post by bojung »

i send e-mail

this mail is samplie program..
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

i sent e-mail

Post by bojung »

i sent e -mail

mail address : [email protected]
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I received it. I'll test your example and will answer you closer to the end of this week.
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

i watting your reply ..

Post by bojung »

i watting your reply ..
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

Thank you for reading my e-mail.

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

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