Wks-DC-obj
Data Connector added to a worksheet are handled as objects in Origin. The column attributes can be accessed and changed using the properties in the table below.
For workbook level controls of Data Connector, please refer to Wbk object.
0 = has no Data Connector, 2 =worksheet has not been used as destination by any Data Connector, 3 = worksheet is the destination of a Data Connector. You can then use "wks.DC.Source$" to check its data source. 4 = Data Connector has an invalid data source.
0 = absolute file path, this is the only value that is read-write 1 = project relative file path 2 = common data relative file path 3 = web
//This example shows how to import a CSV file by Data Connector newbook; wbook.dc.add("CSV"); wks.dc.source$=System.path.program$+"Samples\Batch Processing\T275K.csv"; wks.dc.import();
//Import data to all DC-containing books in the Project Explorer (PE) folder doc -ef LBC { wks.dc.import(); };
//Import data to all DC-containing books in the entire project (all PE folders) doc -e LBC { wks.dc.import(); };