Re: [PythonReports-users] Images
Brought to you by:
a1s
From: alexander s. <al...@go...> - 2013-01-02 16:07:49
|
Werner F. Bruhin wrote, at 02.01.2013 17:44: > > In my application the user can store images (e.g. wine labels, recipe > preparation etc), the images are stored in the file system in a user > defined folder and the application just stores the file name. > > On my recipe report I like to show the image of the "Recipe finished" > image if it exists. > > I was hoping to use a function "getImagePath(THIS.id, 'imgtype') and it > comes back with the appropriate full path to the image, in the case of > the recipe report it would find the image showing the "finished" stage > of the recipe. > > Looking at the image element I don't see how I could do this, if it is > possible could you give me some tips. Sorry, at present there is no way to dynamically compute image file path or bitmap data. That is quite a flaw in the template language. I will have to think of a syntax for such things. So far I've got several ideas, but all of them are either ugly or not backward compatible. Best wishes, alex. |