LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append table to report: different column width

Solved!
Go to solution

Hi,

Is there a way to set different column width when using the Append Table to Report VI? as I understand, the width is distributed evently for the Append Table to Report VI.

 

I have a table with 5 colunms and want  to set the width for each column differently for the report printout.

 

thanks for your helps

H. Pham

0 Kudos
Message 1 of 5
(3,914 Views)

The funtionality exist for creating tables with different widths but it is not exposed in the existing Append Table to Report VI. You will need to create a copy of it and modify the code. Down inside it there is a property for setting the column width that is by default set to the same value for each column. You will need to provide a way for getting different column widths into it for each column.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
Message 2 of 5
(3,908 Views)
Solution
Accepted by topic author TEmember
Digging into the Append Table to Report VI by following the Column Width input, you will find Append Table to Report >> Append Text Table to Report VI >> tables.vi >>  Set Table Column Width VI. You will find an Invoke Node named SetColumnWidth. Just enter the column number and the respective width for each column.
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 3 of 5
(3,880 Views)

Just a warning -- I don't think this solution is possible any longer with new versions of LabVIEW (at least the way it is written above). The vis listed above have been moved into a class and made private. After searching through the forums and trying to copy-then-modify the Standard instances of the hierarchy listed in the previous response, I almost succeeded in breaking the Report class in my installation of LabVIEW. Luckily I was able to quit without saving the changes to the Report library.

 

Check this thread for more detail; looks like this now requires some advanced object-oriented programming.

0 Kudos
Message 4 of 5
(3,199 Views)
Yet another capability that LVOOP has destroyed...

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 5 of 5
(3,192 Views)