Put a stretch in bold in Reports (In a Function)

Dicas e truques sobre Oracle Reports Builder - modo gráfico ou modo caractere, ascii, arquivo .PRT, etc
Post Reply
marktamg
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 1
Joined: Mon, 30 Jul 2007 12:28 pm
Location: são paulo

I need to put a stretch of a bold function one knows how to do:
Ex.:

Select all

 if :TipoAudiencia = 'INI' then 
 -- 
	 
		              'do dia '                                                                    ||  
		              apRetornaDataExtenso(null,:DtAudiencia)                                      ||  
		              ' para ' 			       			                                                   || 
		              'AUDIÊNCIA INICIAL' --> AQUI TERIA QUE FICAR EM NEGRITO....

Thanks.
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

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

One way is to create another item pro that will get bold.
Then put the same condition there, and leave one side of the other. You can even put an anchor for them to be "stuck" ...
User avatar
Marciel
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 158
Joined: Thu, 03 May 2007 10:12 am
Location: Vitória - ES
Sabe qual o cúmulo da ignorância, da apatia e da ira?
Não sei, não quero saber e tenho raiva de quem sabe.

As Dr_Gori said, I think what can be done is split into two functions. Then you can use them in a single text field:

Select all

&<CF_TEXTO1> &<CF_TEXTO2>
then simply format the excerpt you want.
JLM
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 11
Joined: Tue, 23 Mar 2010 5:15 pm
Location: Araraquara-SP

In the format trigger property of the item (f_item) that you want in bold:

Select all

 
function F_ITEMFormatTrigger return boolean is 
begin 
  IF CONDIÇÃO = "varialvel" THEN 
     SRW.ATTR.MASK := SRW.WEIGHT_ATTR; 
     SRW.ATTR.WEIGHT := SRW.BOLD_WEIGHT; 
     SRW.SET_ATTR(0,SRW.ATTR); 
  END IF; 
  RETURN(TRUE); 
end; 
: Wink:
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests