Welcome, Guest. Please login or register.
Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - salvo

Pages: [1]
1
That's a good question  ;D
Unfortunately I didn't write this code, I don't know why TextItem has been choosen for this purpose...
Anyway, adding quotes still doesn't work, maybe can you point me to the correct approach I should use in this case?

Thanks again for the support! :D

2
Hi Alex!

unfortunately I cannot do this trick. Some images are created at runtime taking a screenshot of the window and I save them into a folder pointed by FolderPath that contains the full path to the folder. So I have to use the full path to get this images.

Is there a way to do that without having the error above?

3
Hi,

I'm having problem when trying to assign an image using setReportVariable.
This is the code:
Code: [Select]
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!

Pages: [1]