by Izertis

Create documents in docx, xlsx (MS Office Word and Excel), odt, ods (LibreOffice and OpenOffice) and pdf format without MS Office or others plugins installed from any module and subpanel using templates.

Includes a 30 day guarantee
Try it Now

By clicking you consent to share your profile with the developer

#340 - Image files

Closed Feature created by kir 10 years ago

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

  1. dharma member avatar

    Izertis Provider

    10 years ago

    Hi Kir Yes, it's possible through special variables. The images must be in hard disk.

    • kir member avatar

      kir

      10 years ago

      Images let's say attached like note or something like that and placed on server as attachment - is it OK?

  2. dharma member avatar

    Izertis Provider

    10 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.

    • kir member avatar

      kir

      10 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.

    • dharma member avatar

      Izertis Provider

      10 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).

  3. kir member avatar

    kir

    10 years ago

    one more: what extensions are supported for images?

    • dharma member avatar

      Izertis Provider

      10 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.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating