Translations:Macros/Base/ba002/4/en

    From The Document Foundation Wiki

    <syntaxhighlight lang="vbnet" line> Sub main()

       doc = ThisComponent
       conn = doc.DataSource.getConnection("", "")