04.08.10, 14:03, "Marc Santhoff" <m.santh...@t-online.de>:

> Hi,
>  
>  is it possible to force the line endings of a text file written using
>  BASICs simple file functions to be 0xOD 0xOA instead of 0x0A only?
>  
>       open sDateiname for output as #iNum
>       s = CDate(oBereich.getCellByPosition(0, 0).getValue())
>       s = s + ";"
>       ...
>       print #iNum, s
>  
>  I tried to add a chr(0x0d) at the end of the print line, but it is
>  getting eaten up by OO.o not appearing in the file.
>  
>  
>  Background:
>  
>  Those files are type .CSV written using OO.o running on FreeBSD. The
>  consuming application is running on windows and is getting very confused
>  by unix type line endings.
>  

You can use 'unix2dos' program to convert written files. I guess you can even 
call it automatically from Basic macro

-- 
Regards,
Konstantin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to