Description ExportToDatabase exports the xml-document starting with the element pFromChild. pExportSettings defines the behaviour of the export (see Application.GetExportSettings), pDatabase sets the destination of the export (see Application.GetDatabaseSettings).
Example
Dim objDoc As Document
Set objDoc = objSpy.ActiveDocument
'set the behaviour of the export with ExportSettings Dim objExpSettings As ExportSettings
Set objExpSettings = objSpy.GetExportSettings
'set the destination with DatabaseConnection Dim objDB As DatabaseConnection
Set objDB = objSpy.GetDatabaseSettings