Re: Spreadsheet_Excel_Writer New Line Problems on Windows

From: Date: Fri, 20 Feb 2004 16:20:13 +0000
Subject: Re: Spreadsheet_Excel_Writer New Line Problems on Windows
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10830@lists.php.net to get a copy of this message
On 20 Feb 2004 at 10:50, Jason Leidigh wrote: > I am using a windows machine provided by a hosting company. I had to > upload all files including PEAR.php from a OSX machine on which I had > performed all my tests. On the Mac I was able to produce the first > example from the documentation without problem, but on the windows > machine the file produced reads as text if set with http headers, and > if written to disk and then FTPd down to either a Windows or Mac and > open with excel I get an error saying the file is not accessible. > When I open the file with a text editor and compare it with that > produced by my Mac (and which works) ther appeares to be a difference > in the new line terminations. New lines in the Mac version are > special chars in the Windows version but dont cause a hard new line. > Any idea? It would be helpful if you could provide a small test-script you run (not more than 10 to 20 lines) and two small (!) excel-files from Mac and Windows (maybe even pack them before mailing out). Then send then over the list, so we can all have a closer look on the differences. PS: If the files are "larger" please put them on a webspace and only provide a link in your email to the list ... however I guess nobody will worry about a few kb attachment ... Regards, Stefan

« previous php.pear.general (#10830) next »