VB: Function NewDataRange([ range As ByVal Object ], [ Name As ByVal Object ] ) As DataRange
C++: DataRange NewDataRange(_variant_t range, _variant_t Name )
C#: DataRange NewDataRange(var range, var Name )
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW pageName = app.CreatePage(app.OPT_WORKSHEET) app.PutWorksheet(pageName, [[5,6,7,8], [2,3,4,5]]) dr = app.NewDataRange("[" + pageName + "]1!Col(A)", "testRange") print(dr.GetData())
8.0SR2