<syntaxhighlight lang="vbnet" line> Sub main()
doc = ThisComponent conn = doc.DataSource.getConnection("", "")