TRVReportHelper and clipping

General TRichView support forum. Please post your questions here
Post Reply
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

TRVReportHelper and clipping

Post by sh17 »

Hello!

TRVReportHelper don't support clipping. How can i realise this?

Sven
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, which kind of clipping do you need?
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

Post by sh17 »

I init the reporthelper with a specific width (in pixel accordingly to resolution of the printer)

the style ist set to NoWrap

But if I print out a long line text, it is printed over right border. I would clip the text at this border.

What can i do?

Sven
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can do it yourself.
Before drawing page, call IntersectClipRect(Canvas.Handle, Left, Top, Right, Bottom), where Rect(Left, Top, Right, Bottom) is a clipping area.
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

Post by sh17 »

Thanks :D
Post Reply