LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report generation: How to set the height of cells (not HTML mode)

Hi,
 
A lot of customisation is possible with the standard report generation toolkit. NI just don't provide the functionality in their front end VIs. I've modified the VIs from NI so that I can have different fonts and alignments in the different cells of a table.
 
Now one critical thing I cannot figure out is how to set the height of a cell. I want to have some spacing below and above the text in each cell. How can I do this?
 
 
Cheers on a grayny day,
Skinny
0 Kudos
Message 1 of 4
(3,052 Views)
Hi Skinny,

There are a couple of things you can do to accomplish row sizing...one is easy and one is hard. 🙂 The easy way would be to write additional whitespace into the cells above and below your text. So if you wanted to put "abc" in a row, instead you would write:

[space]
abc
[space]

Where [space] represents a space or some other whitespace character. This would give you space above and below your text in each row, and that space would be the same height as your text. Now if you want to put in less space, that's where the hard solution comes in. You would have to modify the Report Generation VIs to add whitespace text to each cell before and after your desired text, and you would have to set the font on that whitespace to have a size that is equal to the height of the whitespace you desire. I don't recommend this approach since it would probably be pretty difficult, but if you want to try it, the VI where text gets added to cells in a Standard report table is vi.lib\Utility\NIReport.llb\Enter Row Cell Data.vi.

Good luck,
-D
0 Kudos
Message 2 of 4
(3,044 Views)
Hey Darren, I've already accomplished a lot by modifying Enter Row Cell Data.vi and other VIs in the Report toolkit; different fonts for different cels, different cell widths etc. Thanks for your suggestion, but the solution you suggest is not what I'm looking for. I was looking for a method to manually set the height of a row in e.g. centimeters. - Skinny
0 Kudos
Message 3 of 4
(3,040 Views)

Hi Skinny,

I'll log a customer request that we support this functionality in a future version of LabVIEW. 

-D

0 Kudos
Message 4 of 4
(3,027 Views)