LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Reports - Center Align Table Cells and Add Additional Spacing Between Images

Hey Fancy Folk,

 

TLDR;

I am making an HTML report and I have a table that is 3 columns by 7 rows that I'd like to center align the text in the cells. Additionally, I'd like to add more spacing between 2 images "control images" on the same line (making it easier to parse with your eyes).  Apparently my Google-Fu is lacking because I haven't found info related to this with the LV HTML report generation and I was hoping someone could provide resources so I can learn.

 

Verbose;

I am making an HTML report for a test after it has been ran.  I have the data I want being used in the HTML report I am creating and I am at the "make things pretty" part of my report.  I would like to center align the text in the "CW" and "CCW" columns and add some additional spacing between the images on the same line, reference image below for what my report currently looks like.

 

Matt_AM_0-1727704119430.png

My code that is generating this data is seen in the image below.  Note, the orange double line running to the for loop is to force my graphs - which are updated in a flat sequence struct with said double inside - to update before saving the image to the report.

 

Matt_AM_1-1727704204264.png

 

I've tried googling around and searching the LV examples for report generations, but I haven't been able to find much info specifically about LV's HTML report generation and I am at a bit of a loss.  I tried adding a for loop around the "Apprent report text" to append several tab constants to the HTML report, but that kept the horizontal spacing the same between the graphs on the same line.  

 

Can anyone provide me resources about LV's report generation specific to HTML?  Am I being too specific with my scope to find resources I need (IE, just search around for HTML stuff or "Office parameters" controls for the "Append X to report")?  Basically I am looking for someone to point me in a direction so I can make my stuff look pretty.

 

Thanks,

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 1 of 2
(60 Views)

What you are asking for is pretty easy, but there are multiple ways to do it.  You should be able to add a custom CSS or a few style properties to the report to pretty things up.  

 

Can you attach a dummy HTML report (data sanatized)?  A simple example VI that generates the report might help too.  

 

Craig

0 Kudos
Message 2 of 2
(13 Views)