Jump to content
Software FX Community

How to copy a chart question


User (Legacy)

Recommended Posts

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

Archived

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

×
×
  • Create New...