Replacing variables in text with StiImage

Stimulsoft Reports.JS discussion
Post Reply
mswierczynski
Posts: 1
Joined: Fri Oct 07, 2022 10:46 am

Replacing variables in text with StiImage

Post by mswierczynski »

Hello,
Im struggling with replacing variables in template with StiImage

I put the text in the report like this:
download/file.php?mode=view&id=28091

TextVariable example content is "some example text {graphics} more text ...."

So far I have checked the following solution from post: viewtopic.php?p=164299
The "replace" method works for replacing occurences with text variables , but it is not possible to replace the text with an image variable.
How can I insert an image in place of the occurrence of the phrase {graphics} in the text of TextVariable?

Thank you
Attachments
Screenshot_2.png
Screenshot_2.png (20.97 KiB) Viewed 479 times
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Replacing variables in text with StiImage

Post by Lech Kulikowski »

Hello,

It is not possible to insert an image in the Text component. You should use the Image component.

Thank you.
Post Reply