von ROM » Fr, 14.05.2010 11:35
Hallo,
ich möchte gerne meinen Writerinhalt als Textdatei speichern. Leider ist der Inhalt der Textdatei nicht lesbar. Wie muss das Property dafür gesetzt werden?
Code: Alles auswählen
sub StoreAsTextDatei
Dim sEingabe, sNachname, sURL, sPDF as String
Dim oFeld, oDoc, oTxtFelder as Object
oDoc = thiscomponent
sUrl = "file:///c:/Scripts/Datei.txt"
Dim FileProperties(1) as new com.sun.star.beans.PropertyValue
FileProperties(0).Name = "FilterName"
FileProperties(0).Value = "Text - txt - odt"
FileProperties(0).Name = "OverWrite"
FileProperties(0).Value = true
oDoc.storeToURL(sURl, FileProperties())
end sub
Danke für eine kurze Info
Hallo,
ich möchte gerne meinen Writerinhalt als Textdatei speichern. Leider ist der Inhalt der Textdatei nicht lesbar. Wie muss das Property dafür gesetzt werden?
[code]
sub StoreAsTextDatei
Dim sEingabe, sNachname, sURL, sPDF as String
Dim oFeld, oDoc, oTxtFelder as Object
oDoc = thiscomponent
sUrl = "file:///c:/Scripts/Datei.txt"
Dim FileProperties(1) as new com.sun.star.beans.PropertyValue
FileProperties(0).Name = "FilterName"
FileProperties(0).Value = "Text - txt - odt"
FileProperties(0).Name = "OverWrite"
FileProperties(0).Value = true
oDoc.storeToURL(sURl, FileProperties())
end sub
[/code]
Danke für eine kurze Info