Tree structure Of report
Hi ,
We are Right now using Delphi 6.0 . Planning to move to Delphi 2005
soon.
We use report builder pro 7.01 . Here is my question is there any
component available in report builder pro I can show report in a tree
structure . With Indents. Any body knows anything about this please help
us.
Thank You
Bharathi
Tip Technologies
We are Right now using Delphi 6.0 . Planning to move to Delphi 2005
soon.
We use report builder pro 7.01 . Here is my question is there any
component available in report builder pro I can show report in a tree
structure . With Indents. Any body knows anything about this please help
us.
Thank You
Bharathi
Tip Technologies
This discussion has been closed.
Comments
You can view the Report Tree by selecting "Report Tree" from the View |
Toolbars| ... main menu option in the designer. If this is not sufficient,
it would be very easy to create one yourself given the current architecture
of ReportBuilder. Each TppReport contains a certain number of bands which
in turn contain a certain number of objects. If a subreport is one of those
objects, you will need to use recursion. See the following article on
looping through every object in a report...
----------------------------------------------
Tech Tip: Loop Thru All Objects in a Report
---------------------------------------------
A ReportBuilder report is composed of a set
of components. The basic structure is
Reports.Bands[].Objects[]
The bands and objects within the report can
be accessed directly by object name or
via the Bands and Objects array properties.
Below is an example of using the Bands and
Objects array properties to change the font for
all objects on a report.
uses
ppClass;
procedure AssignFontToReport(aFont: TFont; aReport: TppCustomReport);
var
liBand: Integer;
liObject: Integer;
lObject: TppComponent;
begin
for liBand := 0 to aReport.BandCount-1 do
for liObject := 0 to aReport.Bands[liBand].ObjectCount-1 do
begin
lObject := aReport.Bands[liBand].Objects[liObject];
if lObject.HasFont then
lObject.Font := aFont;
end;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
we have a component available which supports complete Tree structures and/or
copies of a TTreeView in a report.
Please have a look at http://www.choosepill.com/components/cpcrbtree.htm
where you can also download a fully functional trial version.
Best Regards
--
Sebastian Modersohn
Choosepill components
www.choosepill.com