Home » Developer & Programmer » Reports & Discoverer » my report is not showing color
my report is not showing color [message #90033] Tue, 05 October 2004 22:04 Go to next message
shish mate
Messages: 49
Registered: February 2004
Member
reports 3.

i've writen foramtting trigger for my report like this

function F_EMPNOFormatTrigger return boolean is
begin
if :empno < 7500 then
srw.attr.mask := SRW.FFCOLOR_ATTR ;
srw.attr.ffcolor := 'yellow';
SRW.SET_ATTR (:empno , srw.attr);
end if;
return (TRUE);
end;

but it is not showing me ant color

whats wrong with my code
can u tell me steps for this
Re: my report is not showing color [message #90040 is a reply to message #90033] Fri, 08 October 2004 03:11 Go to previous messageGo to next message
Rana Irfan
Messages: 15
Registered: August 2004
Junior Member
Hi,
Dear

begin
if :Fk_item_Cat_no is not null then
srw.attr.mask := SRW.TEXT_ATTR +
SRW.FACE_ATTR +
SRW.SZ_ATTR +
SRW.WEIGHT_ATTR +
SRW.GCOLOR_ATTR +
SRW.FBCOLOR_ATTR +
SRW.FFCOLOR_ATTR +
SRW.BFCOLOR_ATTR +
SRW.HJUST_ATTR;

srw.attr.text := SRW.BOLD_TEXTA;
srw.attr.face := 'times';
srw.attr.sz := 7;
srw.attr.weight := SRW.BOLD_WEIGHT;
srw.attr.gcolor := 'blue';
srw.attr.fbcolor := 'red';
srw.attr.ffcolor := 'red';
srw.attr.bfcolor := 'pink';
srw.attr.hjust := SRW.CENTER_HJUST;
srw.set_attr (0, srw.attr);
end if;
RETURN (TRUE);
end;

to write this I think soved ur Prob.

Rana Irfan
Re: my report is not showing color [message #90041 is a reply to message #90040] Fri, 08 October 2004 03:39 Go to previous message
ashish
Messages: 107
Registered: December 2000
Senior Member
it's working

thanks Rana Irfan
ASHish
Previous Topic: Very Urgent-Compiling & Running Oracle Reports in UNIX
Next Topic: discoverer to access MS Access and Excel
Goto Forum:
  


Current Time: Sun May 05 17:22:08 CDT 2024