Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented

Thread Tools

Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented
Posts: n/a
John Yeung wrote:

> > is there any other way to tell how many digits excel would round to
> > when displaying a floating point number? that's my only reason for
> > needing formatting_info=True.

> I have not personally used it, but OpenPyXL is another option for
> working with .xlsx files, and it might provide the formatting info you
> need:
> John Y.

thanks but openpyxl doesn't work well enough.
most of the spreadsheets i need to read contain
dropdown lists with data validation using a named
formula like: OFFSET(Data!$K$2,0,0,COUNTA(Data!$K:$K),1)
which causes openpyxl to throw a NamedRangeException.
i don't even care about the named objects. i just want
to know what's in the cell, not what other possible
values the cell might have had.

apart from that, it does give access to number formats
so your suggestion would work for simpler spreadsheets.

hopefully the intention that xlrd not support formats in xlsx
files will change one day into an intention to support them.

until then my users can keep manually saving xlsx files they
receive as xls before importing them.

maybe i need to investigate some perl modules or pyuno instead.
perl's Spreadsheet::XSLX module handles formats. it gets the
date formats a bit wrong but it's workaroundable.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl firewall test script - detect whether host not responding orfirewall rule not implemented inetquestion Perl Misc 0 05-06-2009 02:15 AM Javascript Error htmlfile: not implemented ASP .Net 6 05-02-2008 08:30 AM
IOS 12.3 : "ip audit" not implemented ? Luc Cisco 1 04-26-2004 03:58 AM
router 806 and IOS 12.3 : "ip audit" not implemented ? Luc Cisco 0 04-25-2004 05:11 PM
router 806 and IOS 12.3 : "ip audit" not implemented ? Luc Cisco 0 04-10-2004 11:16 PM