https://issues.apache.org/ooo/show_bug.cgi?id=119935

hanya <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #15 from hanya <[email protected]> ---
This can open from the bytes into spreadsheet.

Sub CSVFromStream
  aBytes = Array(72,9,69,9,76,9,76,9,79)
  oInputStream =
com.sun.star.io.SequenceInputStream.createStreamFromSequence(aBytes)

Dim oMediaDesc(2) as new com.sun.star.beans.PropertyValue
oMediaDesc(0).Name = "InputStream"
oMediaDesc(0).Value = oInputStream
oMediaDesc(1).Name = "FilterName"
oMediaDesc(1).Value = "Text - txt - csv (StarCalc)"
oMediaDesc(2).Name = "FilterOptions"
oMediaDesc(2).Value = "9,0,0,1"

Dim oDoc
oDoc = StarDesktop.loadComponentFromURL("private:stream","_blank",0,oMediaDesc)
End Sub

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to