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

createExcel() gives StateError (Bad state: No element) #374

Open
Istiak-Ahmed78 opened this issue Sep 10, 2024 · 3 comments
Open

createExcel() gives StateError (Bad state: No element) #374

Istiak-Ahmed78 opened this issue Sep 10, 2024 · 3 comments

Comments

@Istiak-Ahmed78
Copy link

var exelInstance = Excel.createExcel();

This gives error.

ERROE

I cannot initiate Excel to create a new excel sheet. Please help

Currently using excel version:
excel: ^4.0.6

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.19045.4842], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[√] Android Studio (version 2024.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!
@Nimo11
Copy link

Nimo11 commented Oct 9, 2024

Same here

@halgh
Copy link

halgh commented Oct 16, 2024

Same issue here, it seems that when I disable 'All Exceptions' in breakpoints when running the app in vscode, the error doesn't appear and creation of the file is still successful.

@lraty-li
Copy link

lraty-li commented Nov 9, 2024

Same, and disable "All Exceptions" of vscode really do the thing.
I‘m making a csv excel convertor, everything work jsut fine during the “read excel data and convert into csv“ part, but when i want to create a new excel to write into, it throw error. The strange thing is it will throw error too if I go back to run the "excel to csv" part.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants