Mohammed Nasman Posted December 19, 2017 Share Posted December 19, 2017 Hi All, I have multiple projects that share same images, I can view images without problem giving the physical path to the UniImage. The only problem I have with event OnFieldImageURL isn't accepting the physical path, it's convert any path to full URL with the path giving, which lead to not viewing the image. for example using GridImage Demo: if (Column.Tag = 255) and SameText(AField.FieldName, 'shift') then begin if AField.AsBoolean then OutImageURL := 'files/sun.jpeg' else OutImageURL := 'files/moon.jpeg'; end; Changing any OutImageURL to looks like this: OutImageURL := UniServerModule.StartPath + 'files/moon.jpeg'; it will be converted on runtime to the following This can works fine with TuniImage.picture.Loadfromfile(UniServerModule.StartPath + 'files/moon.jpeg'); Is there any way to override this behavior of OnFieldImageURL? Regards, Mohammed Quote Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted December 20, 2017 Author Share Posted December 20, 2017 I have modified the title of the post, because the older was not clear. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted December 23, 2017 Share Posted December 23, 2017 Please use OnFieldImage event. It has Graphic parameter that you can load from file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.