I'm having problem when trying to assign an image using setReportVariable.
This is the code:
report->dataManager()->setReportVariable("Logo", "<img source = "+ FolderPath +"/Resource/STAR2K_FONDI_CHIARI.jpg width=826 height= 237>");
Now when I run it in local the FolderPath is: C:\Progetti\QT_Project\App and everything works fine.
When I try to install my application on another pc the FolderPath became: C:/Program Files (x86)/MyApp And suddendly it doesnt't return the image. I'm sure the image is available in the correct path in both version. It looks like there is something with blank spaces but I don't know how can I handle that.
I also tried to replace spaces with '%20' as following:
"<img source = C:/Program%20Files%20(x86)/MyApp/Resource/STAR2K_FONDI_CHIARI.jpg width=826 height= 237>"
Is this uncorrect? I'm using a text item and I checked allowHTML and allowHTMLInFields.
What am I doing wrong?
Thanks for your help!