Code: Select all
sub load_csv
fname = "file:////home/max/mytab.csv"
if len(fname)>0 then
dim fileProps(1) as new com.sun.star.beans.PropertyValue
fileProps(0).Name = "FilterName"
fileProps(0).Value = "Text - txt - csv (StarCalc)"
fileProps(1).Name = "FilterOptions"
fileProps(1).Value = "44,34,76,1,,0,false,true,true,false"
document = StarDesktop.loadComponentFromURL(fname, "_blank", 0, fileProps())
end if
msgbox "Done"
end sub
I've been playing around the parameters of
Code: Select all
StarDesktop.loadComponentFromURL(fname, "_blank", 0, fileProps())
Any help for that?
thank you