NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use local variable rather than path for image?

Solved!
Go to solution

I am placing an image into my test report. Everything seems to work fine, just wondering if I can use a local variable, rather than the path as shown below. I cannot seem to figure out how to accomplish this, or if it can be done at all.  Thanks....

 

Step.Result.ReportText = "<IMG ALT='Reference Image' src='C:\LabView_Projects\dangraph.jpg'></IMG>"

 

Looking for

Step.Result.ReportText = "<IMG ALT='Reference Image' src=Local.variable ></IMG>"  

0 Kudos
Message 1 of 3
(2,252 Views)
Solution
Accepted by topic author Z4CRUZN

 

Step.Result.ReportText = "<IMG ALT='Reference Image' src=" + Local.variable +  " ></IMG>"  

 

 

Regards
Ray Farmer
Message 2 of 3
(2,231 Views)

Thanks so much..... that worked perfectly....

0 Kudos
Message 3 of 3
(2,224 Views)