Page 1 of 1

How to avoid clipping of rv contents when printed / painted

Posted: Mon Feb 13, 2006 9:21 am
by lwinter
We are using the RichView editor to paint its contents into a device context (metafile) which in turn is placed into a diagram. The contents printed to the metafile are clipped when the metafile is translocated so that relative coordinates become negative.

We need to be able to print unclipped RichView contents to device context / metafile regardless of the positioning / coordinates of the metafile, including negative coordinates.

Q 1:
How can clipping be avoided when printing / painting to device contexts / metafiles?

Q 2:
Is it possible to use the TRVPrint for the purpose of only printing the content without having pagination and other overhead?
E.g. Create and get Metafile's Canvas and pass it into TRVPrint

Thank you!
-- Lutz

Posted: Mon Feb 13, 2006 6:04 pm
by Sergey Tkachenko
Hmm, how do you use TRVPrint for drawing into metafile?
TRVReportHelper was designed for drawing onto custom canvas, and it should not perform clipping.