08-20-2015 04:32 PM
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.
08-21-2015 08:51 AM
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