User (Legacy) Posted June 5, 2003 Report Share Posted June 5, 2003 Is there a simple way to clone a ChartFX.Chart object? Thanks, Jason Link to comment Share on other sites More sharing options...
Software FX Posted June 6, 2003 Report Share Posted June 6, 2003 Yes. You can export it to a stream (it could be in memory), create a new chart and import it back. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Software FX Posted June 6, 2003 Report Share Posted June 6, 2003 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 More sharing options...
User (Legacy) Posted June 10, 2003 Author Report Share Posted June 10, 2003 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 More sharing options...
Software FX Posted June 11, 2003 Report Share Posted June 11, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.