Startseite
|
Inhalt
StarBasic / OpenOffice.org Basic FAQ
Fragen und Infos:
starbasic@dannenhoefer.de
Startseite
>
6. Speichern/Öffnen/Drucken von Dateien
>
6.1 Öffnen/Speichern
>
6.1.8 Wie kann man eine Vorlage öffnen?
Zurück
Vor
6.1.8
Wie kann man eine Vorlage öffnen?
Ö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() )
Seitenanfang
Letzte Aktualisierung:
06.04.2009