Hi, I generated my cross table report in the cross table designer, but it seems that there is no way to modify the format of the cross table, i.e. add some lines or labels to it. Is there any way to do this?
There are a couple of options and I have quickly rated each approach.
1. Moderate. You can create your own crosstab renderer or manuipulate the draw commands that are created by the crosstab. This can be done by registering your own renderer and adding property(s) that control this behavior. See ppCTRend.pas in the installed RBuilder\Source directory for an example to start with.
2. Easier than 1. You can modify the matrix after it has been caclulated and before the renderer gets a chance to execute for the matrix. Use the Crosstab.AfterCalc event. Here is an example.
Comments
1. Moderate. You can create your own crosstab renderer or manuipulate the
draw commands that are created by the crosstab. This can be done by
registering your own renderer and adding property(s) that control this
behavior. See ppCTRend.pas in the installed RBuilder\Source directory for
an example to start with.
2. Easier than 1. You can modify the matrix after it has been caclulated and
before the renderer gets a chance to execute for the matrix. Use the
Crosstab.AfterCalc event. Here is an example.
http://www.digital-metaphors.com/tips/EmptyGridUsingCrosstabs.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com