How to add image into the template for generate document action?
AnsweredHello,
I would like to ask for your advice, how can I add a dynamically generated image (company logo) to a word invoice template that is in the CompanySettings list?
I need to insert the company logo into the invoice while generating the document. I based my experiments on the [[image (url=[[Picture]], maxwidth=100, maxheight=300)]].
I replaced [[Picture]] with [[@Variables.logourl]], while [[@Variables.logourl]] = https://opiumsystems.sharepoint.com/sites/OpiumLab/SiteAssets/Lists/425899eb-9507-4330-add4-0b5477705448/oplogo.png, however this didn't work for me. So I tried replacing [[Picture]] directly with the url parameter but that didn't work either. Is it even possible to insert a dynamic picture into a word template?
Thank you for the advice :)
-
Hi Samuel
All parts of your document template should work - I made some tests:
Make sure you use the correct quotes for the url parameter of the image placeholder.
Don't use these: “
Use these: "0 -
Thanks Christof for your advice :) It was problem with formatting of the " .
But now i have issue with infinite loading. My logo size is 8 KB and the dimession is 251 × 181.Do you have any advice, please?
0 -
Are you sure it's about the logo and not another part on your template?
Did you try to create an empty template document with just the image placeholder in it?0 -
Sure, I tried to create a template with just the logo but it didn't work. I still have infinite generating of document from the action.
0 -
Hi Samuel
We did create a support ticket on your behalf to arrange a support session.
See you there.
Best regards
Christof0
Please sign in to leave a comment.
Comments
5 comments