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

Hiding columns

edited February 2002 in General
Is there a way to "hide columns" in a tabular report?
I know i canset the Visible property to false in the fields, but is
there a way to shift the rightmost controls to fill the space?
thanks
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
Quid quid latine dictum sit, altum viditur

Comments

  • edited February 2002
    Are you using Report.Columns, or do you have a selection of fields that
    print across the page in columns? I will guess that you have one
    Report.Column and have labels and dbtexts aligned next to each other to give
    you a tabular appearance. Before each band prints, you can set the
    visibility and position of controls for that band. The bands have a
    BeforePrint event that you can use. You can also use the BeforeGenerate
    event. See the RBuilder help file for all event descriptions of the bands.
    You'll need to set the components to the right, to be the component to the
    left's left + width + offset space. You'll want to use the printer canvas
    for the report to measure the width of the data field so that you can set
    the dbText to the right's left position correctly as the detail bands
    generate (only if Autosize is True). TppReport.Printer.Canvas.TextWidth()


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited February 2002
    Thanks... that's exactly what i needed.

This discussion has been closed.