Hi all,
My report has two master data records so I set it up like this :
MASTER HEADER
-------------------------------------------
column names
-------------------------------------------
MASTER DATA
-------------------------------------------
data for the columns
-------------------------------------------
MASTER HEADER
-------------------------------------------
Column names
-------------------------------------------
MASTER DATA
-------------------------------------------
data for the columns
-------------------------------------------
Everything is fine, data is always displayed correctly...I've modified the frDBDataSet1 and frDBDataSet2 like this
procedure TCityStat.frDBDataSet1First(Sender: TObject);
begin
Row:=0;
end;
procedure TCityStat.frDBDataSet1Next(Sender: TObject);
begin
inc(Row);
end;
procedure TCityStat.frDBDataSet2First(Sender: TObject);
begin
Row:=0;
end;
procedure TCityStat.frDBDataSet2Next(Sender: TObject);
begin
inc(Row);
end;
And finally on report itself I did this :
rocedure TCityStat.frReport1EnterRect(Memo: TStringList; View: TfrView);
begin
view.FillColor := clWhite;
if Row mod 2 = 0 then
view.FillColor := $00BBBBBB;
end;
Now this is doing exactly what I told him to do

, it colors every other row with lightgrayish color. The main problem is I want to leave the MASTER HEADER
color as is (WHITE) , is there a way to somehow know when I'm at MASTER HEADER part of the report it should be always white?
Right now my MASTER HEADER is grayish , then the first data line white, then grey, then white, then gray...etc...
Greetings
Robert