help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xlswrite : create xls with several worksheet


From: PhilipNienhuis
Subject: Re: xlswrite : create xls with several worksheet
Date: Fri, 22 Apr 2016 09:39:29 -0700 (PDT)

NJank wrote
> in the meantime, shouldn't xlswrite return a 0? is xlswrite unaware of
> the zip.m file creation error? if so that may be worth it's own bug
> report.

You mean for the file creation error? No I don't think so, it really is
another issue:
The actual bug to fix is that xlswrite and xlsread happily accept an empty
file name (even if silently derived from a subdir name) and append it an
extension anyway, instead of insisting on a valid filename.
Funny is that Excel happily opens and correctly reads a file called ".xlsx"
and only then complains that the file name is invalid.  LibreOffice opens &
reads it w/o complaints whatsoever...

I knew about this scenario for a long time, not only for xlswrite but for
zip.m and friends as well, but AFAICS this is the first time someone reports
to have hit it.  I am not even sure that it is a bug.
TTBOMK there are very few applications that you can feed a nonexistent path
and then happily create that path.

In the mean time it would still be handy to know what Matlab does in this
case.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/xlswrite-create-xls-with-several-worksheet-tp4676404p4676453.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]