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
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.
--------------------------------------------- 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.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com