DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

header height

Hi all,

I'm using the command

Report.ActiveSheets.Objects("Omy2DTable").Settings.Header.Height = #

I'm wondering if the number is a percent of the table height as the height doesn't remain constant. If it is, is there a way to program a constant header heigh not as a percentage of the table height?

 

Thanks,

Sadie.

0 Kudos
Message 1 of 2
(4,327 Views)

Hi Sadie,

 

Sure.  Let's say you start with a desired absolute table height, relative to the height of the REPORT page (in 5 from 0..100).  Now all you have to do is divide that target AbsHdrHeight by the current TableHeight and multiply by 100 to derive the correct relative table header height:

 

AbsHdrHeight = 10
TableHeight = o2DTable.Position.ByCoordinate.Height
o2DTable.Settings.Header.Height = 100*AbsHdrHeight/TableHeight
Report.Resfresh

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(4,224 Views)