Hi,
I was unable to find this anywhere so I fooled around with it until I figured it out.
I noticed that setting the series text appearance does not seem to work in the Q1-2011 version of reporting. You can set the style and colors all you want but something overrides the style at Runtime.
I got around this by setting the style programmatically at run time in the chart_ItemDataBound event.
The result of which seems to be that it sets the style formatting AFTER any override occurs on the design formatting.
I hope this is helpful to anyone out there having the same problem.
-Phil
I was unable to find this anywhere so I fooled around with it until I figured it out.
I noticed that setting the series text appearance does not seem to work in the Q1-2011 version of reporting. You can set the style and colors all you want but something overrides the style at Runtime.
I got around this by setting the style programmatically at run time in the chart_ItemDataBound event.
Private
Sub
Chart1_ItemDataBound(sender
As
Object
, e
As
System.EventArgs)
Handles
Chart1.ItemDataBound
Chart1.Series.Item(0).Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(
CType
(
CType
(252,
Byte
),
Integer
),
CType
(
CType
(186,
Byte
),
Integer
),
CType
(
CType
(47,
Byte
),
Integer
))
Chart1.Series.Item(0).Appearance.TextAppearance.TextProperties.Font =
New
System.Drawing.Font(
"Verdana"
, 8.25!,
CType
((System.Drawing.FontStyle.Bold
Or
System.Drawing.FontStyle.Italic), System.Drawing.FontStyle))
Chart1.Series.Item(1).Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(
CType
(
CType
(252,
Byte
),
Integer
),
CType
(
CType
(186,
Byte
),
Integer
),
CType
(
CType
(47,
Byte
),
Integer
))
Chart1.Series.Item(1).Appearance.TextAppearance.TextProperties.Font =
New
System.Drawing.Font(
"Verdana"
, 8.25!,
CType
((System.Drawing.FontStyle.Bold
Or
System.Drawing.FontStyle.Italic), System.Drawing.FontStyle))
End
Sub
The result of which seems to be that it sets the style formatting AFTER any override occurs on the design formatting.
I hope this is helpful to anyone out there having the same problem.
-Phil