Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Crosstab configuration

edited October 2002 in General
Hi,

we have a couple of reports that we need to implement as crosstabs. The
basic layout is very simple, but there are a few issues I am not sure
about. We use an end-user solution, so everything has to be done using
RAP.

1- We would like to add 1 or 2 empty rows and use an event of the
crosstab to specify the values

2- The text value in the total field is changed to 'totaal
inschrijvingen' (this is the first column). However when the other
values in this column are short, the right edge of the first column is
cutting of this value (we only see 'totaal inschr'). Can we
- prevent this
- or change the height of rhis row and wordwrap the value

3- Can we change the height of some of the headers and wordwrap the
values


regards
Paul Sjoerdsma

Comments

  • edited October 2002
    1. You can add rows as shown in this demo. However, you'll have to create a
    RAP pass through function to make this call as an end user. There are
    examples of creating RAP pass through functions in the RAP tutorials and
    demos in the RBuilder\Demos\RAP installation directory.

    2. The crosstab should show the correct width for the label. When are you
    changing the text value? You can change the cell text as shown in the
    crosstab demo #127.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited October 2002
    Jim,

    1- I'll have a look at the pass through functions

    2- I use OnGetTotalCaptionText and the new value is still being cut off

    3- ?? Can I use wordwrap and change the height of the headers

    regards
    Paul

    In article <3da30c0d$1@dm500.>, "Jim Bennett \(Digital Metaphors\)"
  • edited October 2002
    The crosstab renderer class decides how to render the generated crosstab
    matrix to the page by creating draw commands. You can replace the crosstab
    renderer to perform the rendering to your liking. After you code the
    replacement class, you can register it as the class to use to render. See
    ppCTRend.pas for an example of the current crosstab renderer. At the bottom
    of the unit is the code to make the necessary registration call.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.