Get the number of columns in active worksheet.
GetColCount()
EX1
import PyOrigin wks=PyOrigin.FindWorksheet('[Book1]Sheet1') #Get the number of columns in active sheet print('There are %d columns in sheet' % wks.GetColCount())
Datasheet::SetColCount