On 6/23/13 3:58 AM, Werner F. Bruhin wrote: > Hi, > The RD shows me "error parsing" for this expr for an "Image" element: > > self.repu.getDrinktypeImagePNG(self.Record.__dict__['dtype_id']) > > It is just an RD issue as when I preview the report the image is shown > correctly.
Are you seeing this in the "preview" report or somewhere else? > I think/guess that at design time it does not return what RD likes to see, or > .....? If that function call returns a relative path to an image file name it is possible that at design time that relative path doesn't match up with your current directory... > Can/should I just return a "blank" or None or ? I think if you return None it won't show the image or an error, but I can't remember. > Do I need to set an appropriate "show" condition for the Image element if > there is no > image for a particular detail/row? I think just None will suffice, but if that isn't enough then you could set Show to check for None. Try setting expr_def to None as well. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
