03-28-2008 08:52 AM
Hello everyone involved,
I am using LV8.0.1 and SteveP's VI is in LV8.5. Does anyone have an 8.0.1 version of the VI that they'd be willing to share?
Thanks,
Chris
03-28-2008 09:02 AM
Hi chassan,
here it is.
Mike
03-28-2008 09:06 AM
09-17-2008 01:02 PM
I've attached another version. It first adds the table headers to the array of table contents prior to examination. Also, after some trial and error, I found that adding a constant of 11 pixels to the text width provides consistent results. This can be seen by selecting the widest cell in the table (after column resizing) and changing the justification (left, center, right). When changing the justification, the contents don't appear to change position. This tells me that I've got an optimal column width.
Anyway, attached is a VI which uses two tables with identical contents. It resizes the columns of one table using the original method, and resizes the other using the attached subVI, which uses a slightly modified approach.
10-11-2012 05:15 PM
I'm adding another version. I changed it back to Multicolumn Listbox and make the assumption that the longest string in characters is the longest in pixels. This provides a dramatic performance increase and should work fine if your fonts are consistent in each column.
-Jody
10-12-2012 08:54 AM
As long as this topic bubbled back up I will put in a shameless plug for this idea in the Idea Exchange.
06-13-2016 07:31 AM
Hi
I am printing a table in word document. All the columns are equally spaced irrespective of font size.
Due to that, the table is not fit into the page. If i click autofit contents or autofit windows, the table looks good.
How to do autofit contents in Word report generation when appending table to the word report??
I have attached the picture of MS-Word table.
Best regards,
Shree