Enable JavaScript in the browser to display LibreOfficeDev Help pages.

MRAeG‖

nvD6v‖ThisDatabaseDocument object

CT58E‖ThisDatabaseDocument addresses the active Base document whose properties can be read and set, and whose methods can be called.

ZyJVH‖ThisDatabaseDocument returns an object of type com.sun.star.sdb.XOfficeDatabaseDocument.

FVEx2‖Syntax:


       ThisDatabaseDocument
    

EFj3T‖When the active window does not relate to a Base document, ThisDatabaseDocument returns Nothing.

tip

WvPJY‖When the active window is the Basic IDE, ThisDatabaseDocument object returns the database owning the current script.


EFSA4‖Example:

DrF8G‖Opening current database "formName" and maximizing it can be achieved as shown:


        Dim form As Object
        ThisDatabaseDocument.CurrentController.connect("","")
        form = ThisDatabaseDocument.FormDocuments.getByName("formName").open )
        form.currentController.frame.ContainerWindow.IsMaximized = True
    

iAvQC‖ThisComponent object

qEnoF‖com.sun.star.sdb.OfficeDatabaseDocument API service

GamyT‖com.sun.star.document.OfficeDocument API service