Hi,
I've got a web application that needs to load 100's of charts. I want to be able to export the chart format and then import it when a chart has been called. I'm reusing charts on my web page. I can do it manually by setting the properties, but I can ease my object inheritance tree by being able to specify a file that configures the chart format.
I've tried:
import - export with xml file format. I get this error trying to import the xml file:
System.FormatException was unhandled by user code
Message="Input string was not in a correct format."
Source="mscorlib"
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s, IFormatProvider provider)
at ChartFX.WebForms.b.a(String A_0, Int32& A_1, Int32 A_2)
at ChartFX.WebForms.ImageSettings.a(Boolean A_0, IPersistBase A_1)
at ChartFX.WebForms.b.a(String A_0, Object A_1, String A_2, ObjFlags A_3)
at ChartFX.WebForms.b.b(String A_0, Object A_1, String A_2, ObjFlags A_3)
at ChartFX.WebForms.Chart.a(IPersistBase A_0, Boolean A_1)
at ChartFX.WebForms.Chart.c(Boolean A_0, IPersistBase A_1)
at ChartFX.WebForms.Chart.Import(IPersistBase pers)
at ChartFX.WebForms.Chart.Import(FileFormat format, Stream stream)
at ChartFX.WebForms.Chart.Import(FileFormat format, String fileName)
at base.doConsolidatedSales(String chartName, String sAction) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2005\WebSites\Dashboard\base.aspx.vb:line 173
at base.Chart1_UserCallback(Object sender, UserCallbackEventArgs e) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2005\WebSites\Dashboard\base.aspx.vb:line 25
at ChartFX.WebForms.Chart.OnUserCallback(UserCallbackEventArgs e)
at ChartFX.WebForms.Chart.b(String A_0)
at ChartFX.WebForms.Chart.h(String A_0)
at ChartFX.WebForms.Chart.o(String A_0)
How can I import chart formats from disk files to set up generic charts for new data loads?
btw, where does chartfx save personalization templates? I've considered trying to use that interface as well
Thanks, Jim Leavitt