LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text alignment in word table using report gen vi's

I'am importing text into a word table using the Report Generation VI's and would like to align the text in the center of each cell both vertically and horizontally. Any suggestions?
0 Kudos
Message 1 of 3
(3,621 Views)
The good news is that the alignment of the text (horizontally at least) is a property that you can set. The bad news is that the examples shipped with LV don't expose that property. The good news though is that it's easy to add.

If you drill down into the report generation VI for appending tables (Append Text Table to Report), you will find two subvis a couple layers down. One (called headers.vi) is responsible for adding the header text to the report, while the other (Enter Row Cell Data.vi) appends the rest of the table. Both need to be modified. I have attached the versions I use.

When installing them be sure to make a copy of all the VIs that you are modifying and give the changed versions different names so they won't be overwritten the next ti
me you upgrade LV. You'll note I add a plus sign to the end of the names to differentiate them from the original versions.

If you have problems, hollar and I'll help you through the process of installing these VIs.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,621 Views)
Thanks Mike. I didn't use your VI's, but your answer gave me enough insight that I modified another VI that I'm using and I got the text centered both vertically and horizontally.
0 Kudos
Message 3 of 3
(3,621 Views)