Skip to content
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

bug 2.0.1 can't read excel #202

Open
cuishijie1991 opened this issue Jan 14, 2023 · 2 comments
Open

bug 2.0.1 can't read excel #202

cuishijie1991 opened this issue Jan 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@cuishijie1991
Copy link

cuishijie1991 commented Jan 14, 2023

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: XmlParserException: Expected a single root element at 1:1
#0 XmlAnnotator.close (package:xml/src/xml_events/annotations/annotator.dart:108:7)
#1 XmlEventIterator.moveNext (package:xml/src/xml_events/iterator.dart:47:20)
#2 Iterable.forEach (dart:core/iterable.dart:325:23)
#3 XmlNodeDecoder.convertIterable (package:xml/src/xml_events/converters/node_decoder.dart:53:12)
#4 new XmlDocument.parse (package:xml/src/xml/nodes/document.dart:34:41)
#5 Parser._parseSharedStrings (package:excel/src/parser/parse.dart:136:32)
#6 Parser.startParsing (package:excel/src/parser/parse.dart:17:5)
#7 new Excel.
(package:excel/src/excel.dart:74:12)

表格1(1).xlsx

excel.decodeBytes(bytes)

@FauconSpartiate FauconSpartiate added the bug Something isn't working label Jan 14, 2023
@XSANElimos
Copy link

I had got this same problem too.
so did u solve it ?
好像[spreadsheet_decoder]库没有啥问题,公式也能读出来 这个excel公式也读不出来

@cuishijie1991
Copy link
Author

I had got this same problem too.
so did u solve it ?
好像[spreadsheet_decoder]库没有啥问题,公式也能读出来 这个excel公式也读不出来

Replaced it with library "spreadsheet_decoder"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants