Jump to content
Software FX Community

How to clone a Chart object?


User (Legacy)

Recommended Posts

I used these functions in this way:

MemoryStream stream = new MemoryStream();

Chart1.Export(stream);

Chart2.Import(stream);

but an exception occurred:

An unhandled exception of type 'System.IndexOutOfRangeException' occurred in

chartfx.dll

Additional information: Index was outside the bounds of the array.

Any idea?

Thanks.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:J9TF5rGLDHA.2896@webserver1.softwarefx.com...

> I forgot to mention.

>

> The methods to do that are Export and Import.

>

> Check the docs for details.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

You will need to "rewind" the stream after the export using the Position

property. The Import method does not try to do this in case you have a

stream where you save your own information and then the chart.

--

Regards,

JC

Software FX Support

"Jason Xu" <hunose76@yahoo.com> wrote in message

news:Oi3Bqb6LDHA.2804@webserver1.softwarefx.com...

> I used these functions in this way:

>

> MemoryStream stream = new MemoryStream();

> Chart1.Export(stream);

> Chart2.Import(stream);

>

> but an exception occurred:

> An unhandled exception of type 'System.IndexOutOfRangeException' occurred

in

> chartfx.dll

>

> Additional information: Index was outside the bounds of the array.

>

> Any idea?

>

> Thanks.

>

> "SoftwareFX Support" <support@softwarefx.com> wrote in message

> news:J9TF5rGLDHA.2896@webserver1.softwarefx.com...

> > I forgot to mention.

> >

> > The methods to do that are Export and Import.

> >

> > Check the docs for details.

> >

> > --

> > FP

> > Software FX, Inc.

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...