#340 - Image files
hi Is there images support for document creation? I mean is it possible to add pictures into every line of subpanel data during report creation?
Thanks in advance
hi Is there images support for document creation? I mean is it possible to add pictures into every line of subpanel data during report creation?
Thanks in advance
8 years ago
Hi Kir Yes, it's possible through special variables. The images must be in hard disk.
8 years ago
Images let's say attached like note or something like that and placed on server as attachment - is it OK?
8 years ago
Yes, it's OK. From version 2.05 we have added new default calculated fields to Notes and Documents ('cf_image_file_path') through which it is possible to merge images to generated documents. Also we have added a new example for checking this feature. This calculated field will have value only if the attached file type is image.
8 years ago
files to merge are in sugar dir on server is OK - got it. Next: what about custom module? I will need to merge images to compose Quotes in custom module.
8 years ago
Custom modules, OK. See new example in version 2.0.5 about the new default calculated field 'cf_image_file_path'. Through this example you can learn the variable construction in templates for merging images in generated documents. This construction is not only for 'cf_image_file_path', is a general method for merging images. The requisites are: image files physically on server and a variable that contains the file path (not a url). You can do this with a Sugar field, or with new calculated field in Mail Merge Reports (see documentation and examples).
8 years ago
one more: what extensions are supported for images?
8 years ago
Theoretically any image format supported by the destination document (Microsoft Office or LibreOffice). In the new calculated field 'cf_image_file_path' for Notes and Documents we have limited support to jpg, gif, png and tiff. But this is a special case, requires a prior process to make available physically the file, to use after when we the template is merged, so it has been limited.