var z : boolean;Â Â
 Â
procedure DBCross2Row1OnBeforePrint(Sender: TfrxComponent);
begin
  z := not z; Â
  if z then tfrxmemoview(sender).color := clred                                                                           Â
end;
begin
end.
var z : boolean;Â Â
 Â
procedure DBCross2Row1OnBeforePrint(Sender: TfrxComponent);
begin
  z := not z; Â
  if z then tfrxmemoview(sender).color := clred                                                                           Â
end;
begin
end.
Hello,
i try this, but the report colour all collumn cell
i think the Event calls to often in dependence of columns...
workarround maybe:
var ColCount : integer;
 Â
procedure DBCross2Row1OnBeforePrint(Sender: TfrxComponent);
begin
  colCount := colCount + 1;
  if colcount = 4 then begin // play with the 4 as how many columns u have                                                                                                         Â
      tfrxmemoview(sender).color := clred;
      colcount := 0;
  end                                           Â
end;
begin
end.
procedure DBCross1Row1OnBeforePrint(Sender: TfrxComponent);
   Â
begin
                                                                       Â
if Trim(TfrxMemoView(Sender).Text) = 'RECEITA BRUTA DE VENDAS' then //name of my first row of column
begin
z:=TRUE;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
end;
z := not z;
 Â
if z then
begin           Â
z:=true;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
tfrxmemoview(sender).color := clbtnface;
end else
begin
z:=false;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
tfrxmemoview(sender).color := clWhite;
end;
How i find the number of the current row number of dbcross?
type
if DBCross1Row1.RowNumber = 1 then //dont works
to replace
if Trim(TfrxMemoView(Sender).Text) = 'RECEITA BRUTA DE VENDAS' then
i dont work with the dbcross. It seems a bit hard to handle.
I tried this, too
dbcross2.DataSet.RecNo
but no success.. [img]style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" />
I would manage the Report with "normal" Bands[/img][img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
Maybe some1else got a good idea.. i am interested in this Problem and ill still try to solve it.[/img]
Comments
could u explain ur Problem more exactly? U want to Color 2 Rows alternately?
Row1
Row2
Row3
Row4
Row5
Row6
Row7
Row8
?
Greetz
Good morning Slashmaster, i want to color the background of the first column alternately too, same of the others
i try set this condition property
inside the Highlight property, but dont works.
thanks for help
u could try something like this:
Hello,
i try this, but the report colour all collumn cell
var z : boolean; Needs to stand on the top (over the other procedurs)
U declare a global Variable.
tks pele and SlashMaster, work's fine
workarround maybe:
See the second page..
Yes
NCG is White and receita is Grey --> seems correct?
Correct, in another collumns i use the condition
in highligth condition
How i find the number of the current row number of dbcross?
type
if DBCross1Row1.RowNumber = 1 then //dont works
to replace
i dont work with the dbcross. It seems a bit hard to handle.
I tried this, too but no success.. [img]style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> I would manage the Report with "normal" Bands[/img][img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Maybe some1else got a good idea.. i am interested in this Problem and ill still try to solve it.[/img]
use row index prop for rows columnindex prop for columns