-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XLSX files: Add Excel::ValueReader::XLSX backend #50
Comments
Could you pull and see if 73312b1 tickles your needs?
|
Thanks for doing this. Unfortunately it seems not to be working. Tested using Strawberry Perl 5.38.0.1. Save the script below as use 5.010;
use strict;
use warnings;
use Excel::ValueReader::XLSX;
use Spreadsheet::Read;
my $file = 'files/Active2.xlsx';
my $book = ReadData($file, debug => 1000, parser => 'Excel::ValueReader::XLSX'); Call results:
|
You misinterpreted the
The parser option is available to force a type on a document or stream where Spreadsheet::Read would otherwise not be able to determine what to do. Missing file extension, empty file, something else. |
I did indeed misinterpret the It would also be handy to be able to specify the backend for flexibility. Currently it needs to be set before the |
Waiting for the tests to finish: Spreadsheet::Read 1183fcf support this:
|
Thanks. This looks to do the trick. |
0.88 uploaded to CPAN |
It would be useful to have Excel::ValueReader::XLSX as a non-default parser option.
It only extracts values so is not as feature complete as the other parsers, but in many cases it is only the data that are wanted.
It is substantially faster than the current XLSX backends and might also be useful for #49.
Proof of concept code is below. This builds a structure that reasonably closely matches what SpreadSheet::Read generates using Spreadsheet::ParseXLSX. It is missing some metadata and the cell references like
A3
,BB72
but these could be added. It does match thecell
data structure.The text was updated successfully, but these errors were encountered: