OpenOffice : CSV -> SXC for mailing

Laurent_CIV

New Member
Hi,

Firstly, sorry for my poor english... ;-)

We already developped automatical mailing in progress V9 with MS Word.

A customer ask us to do the same with OpenOffice with a CSV file.

My question is : how to open a CSV file with api code and save (convert?) it to a SXC file ?

The following code doesn't work with CSV files :

------------------------------------------

CREATE "com.sun.star.ServiceManager" OOappl NO-ERROR.

chDesktop = OOappl:createInstance("com.sun.star.frame.Desktop").

chDocument = chDesktop:loadComponentFromURL("<A href="file:///c|/tmp/myfile.csv","_blank",0,Args">file:///c|/tmp/myfile.csv","_blank",0,Args).

------------------------------------------

Thanks

Laurent
 
The truth code:

Laurent_CIV said:
------------------------------------------

CREATE "com.sun.star.ServiceManager" OOappl NO-ERROR.

chDesktop = OOappl:createInstance("com.sun.star.frame.Desktop").

chDocument = chDesktop:loadComponentFromURL("file:///c|/tmp/myfile.csv","_blank",0,Args").

------------------------------------------
 
Back
Top