DataRecordsets Object Members

Visio Automation Reference

The collection of DataRecordset objects associated with a Document object.

Methods

  Name Description
Aa342241.methods(en-us,office.12).gif Add Adds a DataRecordset object to the DataRecordsets collection by connecting to and retrieving data from an OLEDB or ODBC data source.
Aa342241.methods(en-us,office.12).gif AddFromConnectionFile Adds a DataRecordset object to the DataRecordsets collection by using the connection and query information contained in an Office Data Connection (ODC) file to connect to and retrieve data from an OLEDB or ODBC data source.
Aa342241.methods(en-us,office.12).gif AddFromXML Adds a DataRecordset object to the DataRecordsets collection, and fills the resulting data recordset with data supplied in the form of an XML string.
Aa342241.methods(en-us,office.12).gif GetLastDataError Gets the Active X Data Objects (ADO) error code, ADO description, and data recordset ID associated with an error that results from adding a new data recordset or refreshing the data in an existing one.

Properties

  Name Description
Aa342241.properties(en-us,office.12).gif Application Returns the instance of Microsoft Office Visio associated with the DataRecordsets collection. Read-only.
Aa342241.properties(en-us,office.12).gif Count Returns the number of DataRecordset objects in the DataRecordsets collection. Read-only.
Aa342241.properties(en-us,office.12).gif Document Gets the Document object that contains the DataRecordsets collection. Read-only.
Aa342241.properties(en-us,office.12).gif EventList Returns the EventList collection of the DataRecordsets collection. Read-only.
Aa342241.properties(en-us,office.12).gif Item Returns the DataRecordset object at the specified index position in the DataRecordsets collection. Read-only.
Aa342241.properties(en-us,office.12).gif ItemFromID Returns a DataRecordset object from the DataRecordsets collection by using the unique ID of the object. Read-only.
Aa342241.properties(en-us,office.12).gif ObjectType Returns visObjTypeDataRecordsets, the type of a DataRecordsets object. Read-only.
Aa342241.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.

Events

  Name Description
Aa342241.events(en-us,office.12).gif BeforeDataRecordsetDelete Occurs before a DataRecordset object is deleted from the DataRecordsets collection. .
Aa342241.events(en-us,office.12).gif DataRecordsetAdded Occurs when a DataRecordset object is added to a DataRecordsets collection.
Aa342241.events(en-us,office.12).gif DataRecordsetChanged Occurs when a data recordset changes as a result of being refreshed..