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

Dynamic number of columns

edited April 2003 in General
Hi,
Is it possible to build visually, not in code, a report with dynamic number
of columns dependent on a collection of different values of a string field?
I don't mean a crosstab but a regular report.
Thank you,
Janusz Cyran

Comments

  • edited April 2003
    Janusz,

    Use the Report Wizard to do this.

    Otherwise, the example below shows how to create a report by code using the
    entered SQL. You should be able to use this along with the article below to
    create some sort of visual control for creating dynamic columns.

    http://www.digital-metaphors.com/tips/CreateReportFromDataset.zip

    ---------------------------------------------
    Tech Tip: Create Reports in Code
    ---------------------------------------------

    A ReportBuilder report is composed of a set of components. Like other
    standard Delphi components, the components which make up the report layout
    have a run-time interface. That is they can be created and configured using
    Object Pascal code.


    A complete example of creating a report entirely in code is contained in the
    Developers Guide.

    The Developers Guide is located in the ..\RBuilder\Developers Guide\
    directory.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.