- How does ActiveX Automation Databases.GetDatabase or Item method works and what parameters can it accept?
- Is there an method to retrieve database names from a BarTender document?
BarTender 2016 or above.
Answer / Solution
The Databases.GetDatabase or Item method can only accept an index value parameter that is only an integer data type or a string data type value that is the name of the database set in the BarTender document.
Our ActiveX automation documentation can be found in BarTender (under Help->BarTender Help->Automating BarTender->Automation with ActiveX->Reference->Databases Collection Object) or online BarTender Help here.
For retrieving database names from a BarTender document, you could use the Databases.Configuration property which returns a string of XML data of the database connection that contains the RecordSet/Database name you could pull out.