Problem with changing size of Rectangle
Posted: Fri Nov 06, 2009 10:00 am
Hi,
we have a problem changing a size of a Rectangle component via code of our report. Version is the last from 02.11.2009.
We're using the following code:
Dim Rectangle1 As Stimulsoft.Report.Components.StiRectanglePrimitive
Rectangle1= stireport1.GetComponentByName("Rectangle1")
Rectangle1.Width = 15.6
When the report is show it still show the old size of 19.8.
For other components like StiShape
Dim GeoForm As Stimulsoft.Report.Components.StiShape
GeoForm = stireport1.GetComponentByName("Geom_Formen1")
GeoForm.Width = 15.6
everything works fine.
Also if were using: Rectangle1.Enabled = False the rectangle is not show which is correct.
So i guess there must be something wrong setting the size of the rectangle seems it doesn't work correct.
We're using .DLL reports so we're not compiling the report again.
Any help ?
Thx
we have a problem changing a size of a Rectangle component via code of our report. Version is the last from 02.11.2009.
We're using the following code:
Dim Rectangle1 As Stimulsoft.Report.Components.StiRectanglePrimitive
Rectangle1= stireport1.GetComponentByName("Rectangle1")
Rectangle1.Width = 15.6
When the report is show it still show the old size of 19.8.
For other components like StiShape
Dim GeoForm As Stimulsoft.Report.Components.StiShape
GeoForm = stireport1.GetComponentByName("Geom_Formen1")
GeoForm.Width = 15.6
everything works fine.
Also if were using: Rectangle1.Enabled = False the rectangle is not show which is correct.
So i guess there must be something wrong setting the size of the rectangle seems it doesn't work correct.
We're using .DLL reports so we're not compiling the report again.
Any help ?
Thx