Hi
Im attempting to populate some report charts with waveforms via a script (the report is a pre-build template I have created).
To generate the code I manualy populated the chart, then right click->copy as script. When i try to re-run it it come up wiht an error. The offending code is:
'Set o2DLine = Report.Sheets("Intoduction").Objects("2DAxis1").Curves2D.Item(1).Shape
Set o2DLine = o2DAxisSystem.Curves2D.Item(1).Shape
o2DLine.XChannel.Reference = ""
o2DLine.YChannel.Reference = "[1]/channel name"
The error being:
"The index "1" is ouside valid range"
referencing the 2nd line in the above code.
Any ideas on why this is occuring and how I can prevent it?
Cheers