Jump to content
Software FX Community

Problems using Import/Export


Recommended Posts


This is my code:

chart1.FileContents = FileContents.All;

chart1.Export(FileFormat.Binary, "c:\\Program Files (x86)\\Chart FX 7\\ChartFX70\\Temp\\chart.xml");

Chart chart2 = new Chart();

chart2.Import(FileFormat.Binary, "c:\\Program Files (x86)\\Chart FX 7\\ChartFX70\\Temp\\chart.xml");

And this is the exception which fires right after calling Import method:

Index was outside the bounds of the array.

at ChartFX.WinForms.GlobalAttributes.a(Gallery A_0)

at ChartFX.WinForms.GlobalAttributes.a(Gallery A_0, IGalleryType& A_1, IGalleryTypeEx& A_2)

at ChartFX.WinForms.SeriesAttributes.a(Gallery A_0, Int32 A_1, IGalleryType A_2, IGalleryTypeEx A_3)

at ChartFX.WinForms.SeriesAttributes.a(IAmbient A_0)

at ChartFX.WinForms.Internal.AmbientUtils.SetAmbient(Object obj, IAmbient ambient)

at ChartFX.WinForms.Internal.RequiresAmbientCollection.SetAmbient(IAmbient ambient)

at ChartFX.WinForms.LabelAwareCollection.a(IAmbient A_0)

at ChartFX.WinForms.Internal.AmbientUtils.SetAmbient(Object obj, IAmbient ambient)

at ChartFX.WinForms.Chart.a(Object A_0)

at ChartFX.WinForms.Chart.c(Boolean A_0, IPersistBase A_1)

Can you please tell me what's going on there?

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...