05-13-2020 08:26 AM - edited 05-13-2020 08:29 AM
I want to display image in teststand report. Image is .jpeg image and it is image of graph I want to put in report.
I'm using this sentence to put it in report:
Step.Result.ReportText = "<IMG ALT='My Picture' src='" + Parameters.imgLocation +"''></IMG>"
where Parameters.imgLocation is path to my image i want to show.
The image then is not displayed in report but instead only html code is there:
what I'm doing wrong
05-13-2020 09:40 AM - edited 05-13-2020 09:42 AM
Copying and pasting the line you've given into my own teststand sequence works great.
I'm confused by two things.
1. You mention the image is a .jpeg image, but your path in the html code is a .gif image.
2. Looking at your report it looks like you are making an Additional Data for the step called "Image:" and not actually setting Step.Result.ReportText. Just as an example of what mine looks like: So where exactly do you have the expression Step.Result.ReportText = ... placed? It might be helpful if you could post your sequence, even if you just make a dummy sequence with only that step.
05-13-2020 12:44 PM
.gif image is in folder the same as sequence
05-13-2020 01:05 PM - edited 05-13-2020 01:08 PM
Looking at your step, and looking at your report, they aren't the same step. Can you just attach that single step as a sequence? Or did you modify the report plugin?
Even if I use relative paths like in your second example it's working perfectly for me.
As an example. I've attached a working sequence. Run this and let me know if it puts the image on the report for you.
05-14-2020 03:59 AM
If I use your Demo.seq, the image is stil NOT SHOWN in report...What can be wrong?
05-14-2020 08:44 AM
05-14-2020 11:26 PM
01-11-2021 08:38 AM
I have the same issue.
I used the Demo.zip from above.
I tried all Report Formats. My standard is:
System information:
01-15-2021 09:00 AM
I found a solution. I have to add the full path (also when the picture is in the same folder as the .seq file). And the path must have "/" instead of the Windows style "\":
10-07-2024 03:32 PM
When using these expressions, why does TestStand version 2020 64-bit work and 2020 32-bit does NOT work when trying to append images to ATML files?
Images are applied correctly to the Report in TestStand 32-bit if the report type is XML.
If using 32-bit with report type ATML 2.02, 5.00, and 6.01 images do not get appended to the report no matter what style sheet is selected.
Again, everything seems fine in TestStand 2020 64-bit but not in TS 2020 32-bit.
Why?