trichview.com

trichview.support




Re: Control items that exceed the height limit...


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/21/2002 13:37:08


It's not a trivial task.

Of course, drawing control with 40K rows into bitmap is impossible.

You can create a new RichView item class representing this control, and

override printing method in it.

Example is in Demos\Addins\ChartItem.

This example shows how to print a control directly on the printer canvas.


But this does not solve the problem, because there is one more important

issue - how the image of this control will be separated between pages.

There are two possible solutions:

- setting rvepMinHeightOnPage to non-zero value; the control will be printed

on several pages, but it can be split  between  pages in arbitrary place (in

the middle of text line in cell, for example);

- controlling separation between pages yourself; this process is not

documented and is not very easy to learn.


Did you try to use native RichView tables for your reports?



>

>   I would like to show a grid control within my TRichView report.  This

grid

> control may contain a significant amount of data (lets say 40000 rows).

> I cannot show the grid in its entirety because a control's height is

limited.

>  So I will revert to a default size of this control and activate the

scroll

> bars.  Now, when printing, I am trying to find a way to show all the data.

>  This presents a problem because any single bitmap I try to create to

represent

> the control for the print process is too large.  Is there a method to

control

> the printer canvas so I may paint the grid control item myself?

>

> Any help would be appreciated. Thanks





Powered by ABC Amber Outlook Express Converter