05-04-2010 07:21 AM
Hi,
When I use the "Append Table to Report" or the "Excel easy table" VIs to insert data to a template excel file then LabVIEW changes the width of the columns. This is very inconvenient since I have to inject the data to a customer provided template file.
I can not use the "easy text" VI (which preserves the cell width) because this VI is very slow.
Is there anything like "Query cell width" vi. Then I can check the original width of the columns and after I have dumped the data I can restore the widths?
thx.
Solved! Go to Solution.
05-06-2010 07:24 AM
Hi 1984,
you are right the Append Table Report will change the column width, based on what is specified on the column width and the measurement system for column width inputs. However if you set the column width to -1 than the cells in template will not be modified.
To answer your question, there is no specific VI which will give you the excel cell width, however you can use the activeX calls and get that information. If you open the Excel function you can see how these Excel ActiveX calls are performed.
I hope this answers your question.
Regards,
Barna Dobai
National Instruments
05-06-2010 07:36 AM