Themes and XML
Posted: Thu Sep 27, 2007 4:51 pm
TeeChart .NET v3.2.2796.22187
Visual Basic 2005 Express
Windows XP Pro SP2
Hi,
Can anyone give me info on how to use the custom themes? I want to save a custom theme based on the current chart. Later, I want to read that theme back in and apply it to a different chart. I do this:The XML file is created. However, I can't figure out how to load that theme back in and apply it to a chart. I tried this:Visual Basic tells me "Access of a shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated."
Jay
Visual Basic 2005 Express
Windows XP Pro SP2
Hi,
Can anyone give me info on how to use the custom themes? I want to save a custom theme based on the current chart. Later, I want to read that theme back in and apply it to a different chart. I do this:
Code: Select all
ATheme = New Steema.TeeChart.Themes.CustomTheme(TChart1.Chart)
ATheme.WriteToXML("C:\temp\atheme.xml")
Code: Select all
ATheme.ReadFromXML("C:\temp\atheme.xml")
Jay