PyUno - CSV Opening With Writer

Eike Rathke erack at redhat.com
Fri Jan 18 10:50:12 PST 2013


Hi Joel,

On Friday, 2013-01-18 07:05:33 -0800, Joel Madero wrote:

> #The calling it's not exactly this way, just to simplify the code
> DESKTOP.loadComponentFromURL('/data/Joel_Documents/Work/Non-Profit/Libre-Office/FDOBugs/PerDay/2013_01_15.csv',"_blank",0,(),FilterName="Text - txt - csv (StarCalc)",DocumentService="com.sun.star.sheet.SpreadsheetDocument")

What is the (), in there? Isn't that an empty tuple then? Or is it when
followed by the filter properties indicating that these are passed as
the properties array?

Note that the first argument should be an URL, so "file:///data/..."

As .csv is (should be ...) loaded in Calc as default, it might also
suffice to simply invoke

loadComponentFromURL( url, "_blank", 0, ())

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
New GnuPG key 0x65632D3A : 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Old GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD
Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130118/3720f18e/attachment-0001.pgp>


More information about the LibreOffice mailing list