Export data as ASCII
ExportASCII(name, Ctrl = WKS_EXPORT_ALL, cSep = '\t', R1 = 0, C1 = 0, R2 = -1, C2 = -1)
its default = -1.
On error, returns -1, otherwise returns the exported file size.
#Create Book1 import PyOrigin PyOrigin.LT_execute('newbook name:=Book1') Sheet=PyOrigin.WorksheetPages('Book1').Layers(0) #Set data pArr = [[x for x in range(5)] for x in range(2)] Sheet.SetData(pArr, 0,0) #export ASCII exp=Sheet.ExportASCII('D:\File.txt') if exp!=-1: print('the file size is %d B' % exp) else: print('Export failed')