Read_Image_File [message #380856] |
Tue, 13 January 2009 10:40  |
mkhalil
Messages: 108 Registered: July 2006 Location: NWFP Peshawar Pakistan
|
Senior Member |
|
|
Dear Fellow,
I have written the following code in When_New_Form_Instance Trigger.
begin
read_image_file('c:\hms\images\home.PNG','PNG','toolbar_butt.rooms');
end;
But when I execute the form i receive the following message.
can not read image file c:\hms\images\home.PNG
Whereas the the image file exists in the folder.
Would you please help me where am i taking mistake.
|
|
|
|
|
Re: Read_Image_File [message #381024 is a reply to message #380941] |
Wed, 14 January 2009 22:33  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Please reread the reference manual: the valid image file types are BMP, CALS, GIF, JFIF, JPG, PICT, RAS, TIFF, or TPIC. I do not see either 'png' or 'tif' in this list.
Are you sure that you have the case of the name correct?
Also try running this code from a button and see if that makes a difference.
David
|
|
|