Alterar cor da fonte no repeating frame.

Dicas e truques sobre Oracle Reports Builder - modo gráfico ou modo caractere, ascii, arquivo .PRT, etc
Responder
Nass
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Mensagens: 8
Registrado em: Qua, 04 Fev 2009 12:10 pm
Localização: Joinville-SC
Nass.

beleza Pessoal.

Tenho o código abaixo que uso para trocar a cor da linha, agora preciso trocar a cor da fonte.

Preciso saber qual o comando(Ex: bfcolor cor do fundo) da cor da fonte??
-----

Selecionar tudo

begin
  srw.attr.mask := srw.bfcolor_attr; 

  if mod(p_nr_linha,2) = 0 then
    srw.attr.bfcolor  := 'r75g100b100';   	
  else  
    srw.attr.bfcolor  := 'white'; 
  end if;
  
   srw.set_attr (0, srw.attr);  
end;
Valeu.
Avatar do usuário
dr_gori
Moderador
Moderador
Mensagens: 5024
Registrado em: Seg, 03 Mai 2004 3:08 pm
Localização: Portland, OR USA
Contato:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Aqui tem um exemplo retirado do HELP com várias opções:

Selecionar tudo

/* If the salary is 2000, this function sets the
** following attributes:  border width to 1, foreground
** border color to "red," background border color 
** to "blue," border pattern to "checker," foreground
** fill color to "yellow," background fill color to 
** "green," and the fill pattern to "crisscross." 
**
** Note:  When you run the report with this PL/SQL 
** construct in character mode, only the border width
** (of 1) and fill pattern (of solid) will be set; 
** all other settings will be ignored.  When you run
** the report with this PL/SQL construct in bitmap, 
** all of the attributes will be set.  (Be aware that 
** the border background color cannot be set on some
** GUIs.)
*/

function F_SALFormatTrigger return boolean is
begin
   if :sal = 2000 then 
      srw.attr.mask     := SRW.BORDERWIDTH_ATTR + 
                           SRW.FBCOLOR_ATTR     + 
                           SRW.BBCOLOR_ATTR     + 
                           SRW.BORDPATT_ATTR    + 
                           SRW.FFCOLOR_ATTR     + 
                           SRW.BFCOLOR_ATTR     + 
                           SRW.FILLPATT_ATTR; 
      srw.attr.borderwidth := 1; 
      srw.attr.fbcolor     := 'red'; 

      srw.attr.bbcolor     := 'blue'; 
      srw.attr.bordpatt    := 'checker'; 
      srw.attr.ffcolor     := 'yellow'; 
      srw.attr.bfcolor     := 'green'; 
      srw.attr.fillpatt    := 'crisscross'; 
   srw.set_attr (0, srw.attr); 
   end if; 
   RETURN(TRUE); 
end;
Acho que você procura o ffcolor !
Responder
  • Informação
  • Quem está online

    Usuários navegando neste fórum: Nenhum usuário registrado e 8 visitantes