Home » Developer & Programmer » Reports & Discoverer » IMAGE IN REPORT (3 merged)
IMAGE IN REPORT (3 merged) [message #690066] Wed, 02 October 2024 02:36 Go to next message
Mr Rj
Messages: 3
Registered: September 2024
Junior Member
I WANT TO DISPLAY THE PICTURE IN THE REPORT IF THE PICTURE EXISTS IN THAT PATH THEN SHOW IF IT DOES NOT EXIST THEN SHOW A DUMMY PICTURE WHEN I RUN THE REPORT THEN SHOW AN ERROR
REP-0108 FILE C\EMPPIC\.JPG NOT FOUND I WANT IF NOT FOUND THEN SHOW DUMMY
Re: IMAGE IN REPORT (3 merged) [message #690199 is a reply to message #690066] Fri, 29 November 2024 04:49 Go to previous messageGo to next message
shahzad-ul-hasan
Messages: 640
Registered: August 2002
Senior Member
Create a formula coulmn and put this code in that. set its "File Format" to "Image".
function CF_1Formula return Char is
 DIRX VARCHAR2(60) :='D:\Photo\';
 PIC VARCHAR2(85);
BEGIN
 PIC:=DIRX ||:stuid||'.JPG';
  return pic;
  if length(pic) < 28 then 
   pic:=null;
   return pic;
  end if;
end;
Re: IMAGE IN REPORT (3 merged) [message #690200 is a reply to message #690199] Fri, 29 November 2024 06:15 Go to previous message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

I don't know if this is correct in Forms or not but I can say that this part:
  if length(pic) < 28 then 
   pic:=null;
   return pic;
  end if;
will never be executed.

Previous Topic: count student
Next Topic: dense_rank() in formula column
Goto Forum:
  


Current Time: Sat Dec 21 10:13:06 CST 2024