csv Datei wird nur von Writer geöffnet?
Verfasst: Di, 21.03.2006 13:07
Hallo!
Ich habe folgendes Problem:
Für mein Projekt will ich den Inhalt einer Textdatei (2 Zahlenwerte zu 100 Zeilen) in Calc öffnen und habe dazu folgendes gemacht:
Dim Doc As Object
Dim FileProperties(0) As New com.sun.star.beans.PropertyValue
Dim Url As String
Url = "file:///C:/Daten/tab_neu.csv"
FileProperties(0).Name = "FilterName"
FileProperties(0).Value = "scalc: Text - txt - csv (StarOffice Calc)"
Doc = StarDesktop.loadComponentFromURL(Url, "_blank", 0, FileProperties())
Immer wird die Textdatei mit Writer statt mit Calc geöffnet, auch wenn ich die Textdatei in *.csv umbennene oder zum probieren eine Textdatei vorher ins csv-Format exportiere. Was könnte da falsch laufen?
Ich habe folgendes Problem:
Für mein Projekt will ich den Inhalt einer Textdatei (2 Zahlenwerte zu 100 Zeilen) in Calc öffnen und habe dazu folgendes gemacht:
Dim Doc As Object
Dim FileProperties(0) As New com.sun.star.beans.PropertyValue
Dim Url As String
Url = "file:///C:/Daten/tab_neu.csv"
FileProperties(0).Name = "FilterName"
FileProperties(0).Value = "scalc: Text - txt - csv (StarOffice Calc)"
Doc = StarDesktop.loadComponentFromURL(Url, "_blank", 0, FileProperties())
Immer wird die Textdatei mit Writer statt mit Calc geöffnet, auch wenn ich die Textdatei in *.csv umbennene oder zum probieren eine Textdatei vorher ins csv-Format exportiere. Was könnte da falsch laufen?