User (Legacy) Posted September 1, 2003 Report Share Posted September 1, 2003 I have several charts on my WinForms app (each on its own tab). I am now trying to create a report (using ActiveReports) that contains 2 or more graphs on the page. I have looked at the sample from DataDynamics, and have a graph printing on the report. My question is this: Is it possible to "copy" a chart object and place it in another chart object and have the second chart object "be the same" as the first chart object? I have tried the following, and it does not work: In my "Globals" module Dim g_Chart1 as New SoftwareFX.ChartFX.Chart() In my windows form: Dim Chart1 as New SoftwareFX.ChartFX.Chart() ' Code that sets all chart option and binds the datasource to the chart ' Assign Chart1 to the global Chart Object g_Chart1 = Chart1 In my ActiveReport Dim Chart1 as New SoftwareFX.ChartFX.Chart() Chart1 = CType(Me.customControl1.Control, SoftwareFX.ChartFX.Chart) Chart1 = g_objChart1 Thanks, Eric Link to comment Share on other sites More sharing options...
Software FX Posted September 1, 2003 Report Share Posted September 1, 2003 Assigning it will not copy it. It will just reference it. To copy a chart to another, you can use the Export and Import methods. You can use a memory stream to make the transfer. -- 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.