10-14-2022 01:45 AM
Hello
for the testreports I am using TS 2020 with the stylesheet "TR6_Expand.xsl" from NI. Now I generate a picture in LV which is used in the generated report - so far so good. What I see in the generated xml or pdf report is a picture which is has a different width as I would like to have. Changing of the picture in LV was not the solution. Below is an example how it looks like:
Questions:
Thanks!
Solved! Go to Solution.
10-14-2022 08:59 AM
From what I remember, inserting images into reports uses an HTML string to instruct the report generation plugin how to handle the picture.
I did a quick test, and found that I could make the image take up the full space of the report by setting the width style to 100%
My actual Post-Expression string:
Step.Result.ReportText = "<IMG ALT = 'test' src='test.jpg' style='width:100%;'>"
I presume you could also use similar HTML formatting tags to center your image as well, using class='center' in your ReportText HTML string
10-19-2022 08:24 AM