Öffnet man auf normalen Weg eine Vorlage, wird automatisch ein neues Dokument erstellt.
Dies kann man mit dem Paramter AsTemplate verhindern.
Dim myFileProp(0) As New com.sun.star.beans.PropertyValue
oDesktop = createUnoService("com.sun.star.frame.Desktop")
sSourceFile = "file:///c:/vorlage.stw"
myFileProp(0).Name = "AsTemplate"
myFileProp(0).Value = False
oDocument = oDesktop.loadComponentFromURL( sSourceFile,
"_blank", 0,myFileProp() )