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

> Am Mittwoch, den 04.08.2010, 14:07 +0400 schrieb Konstantin Tokarev:
>  > 
>  > 04.08.10, 14:03, "Marc Santhoff" :
>  > 
>  > > 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
>  
>  Yes, I know. But then I would have to force the user to install an
>  additional program on any computer where the macro is working. Things
>  like that are not really what the user likes to hear.
>  
>  I would rather change the macro using another technique, ucb or the
>  like, for writing files than tell the users to install something else
>  (because my macro program is not able to ...).
>  

Hm, I thought your macro is running on FreeBSD server too, so files could be 
delivered to user properly converted.
Sorry if I misunderstood you


-- 
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