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

Changing column headers in crosstab report at runtime in designer

edited June 2003 in End User
Hi,

My customer creates a crosstab report in the report designer at runtime.
However, after dragging a field to the crosstab boxes, the designer places
the field name automatically at the header of the column. This is fine, but
our field names are sometimes cryptic and the end-user would like to edit
the captions to their own liking in the designer. I know we can translate
this info at runtime using code, but in this case we need to let the end
user decide on what to put in the column header.

Is this possible?

Thanks,
Vinnie Murdico
Software with Brains, Inc.
http://www.softwarewithbrains.com

Comments

  • edited July 2003
    Hi Vinnie,

    Check out Demo 127 (ct127.pas) located in the \RBuilder\Demos\2.
    CrossTabs\... directory. This demo shows how to gain control over the text
    fields of a crosstab by using the GetText event. It will give you a
    starting point for customizing the column headers of your crosstab
    component.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Hi Nico,

    I saw the other messages in the NG that said to refer to demo #127 so I did.
    I found the procedure event that it uses (GetCaptionText) and I put one in
    my code, but I can't get it to Fire. I don't know what object has an event
    to point to this procedure. I posted a message to this effect in the
    General newsgroup, but it hasn't been answered yet.

    Thanks,
    Vinnie Murdico
This discussion has been closed.