CopyConfig

<< Click to Display Table of Contents >>

 

CopyConfig

CopyConfig(SourceChart, [Flags])

This method copies settings from an E3Chart to another one. The SourceChart parameter indicates the source E3Chart, whose properties are copied to the E3Chart calling this method.

 

NOTE

For Reports, this method works only with Historic-type Pens.

 

For example, to copy settings from an E3Chart on a Screen (ScreenChart) to another one within a Report (ReportChart), the following script must be added to the Report object associated to the Report.

Sub OnBeforePrint
  Set Chart = _
    Report.Sections("PageHeader").Controls("ReportChart")
  Chart.CopyConfig(Application.GetFrame()._
    Screen.Item("ScreenChart"))
  Chart.LoadData()
  Chart.FitAll()
End Sub

 

NOTE

This method also contains an optional and not used parameter called Flags, kept only for compatibility reasons.

Was this page useful?