Programatically changing the Left Property in a Report

  • Thread starter Thread starter Andy Levy
  • Start date Start date
A

Andy Levy

Hi

was wondering if anyone knows how to change a TextBox Left Position value in
a report programatically.

I have tried textBoxName.Left = 7.565 but it just sets the value to 0
automatically

thanks
al
 
Andy,
The property is a Twip value.
7.565 in twips is just too small a difference for the eye to see, as
1440 twips = 1 inch.

If you really mean 7.565 inches, try:

textBoxName.Left = 7.565 * 1440

in the Report Section's Format event.
 
Andy said:
was wondering if anyone knows how to change a TextBox Left Position value in
a report programatically.

I have tried textBoxName.Left = 7.565 but it just sets the value to 0
automatically


The issue is the units of the number you're assigning to the
Left property. Except in the UI property sheet, the units
are in twips (1440 per inch), This means that if meant
7.565 inches, you should use:

textBoxName.Left = 7.565 * 1440

Also, make sure you do that in the Format event of the
section containg the text box.
 
Back
Top