Code Monkey home page Code Monkey logo

Comments (8)

ialameh avatar ialameh commented on August 19, 2024

what you are explaining here sound like there is an issue in the mime type within the email, and nothing to do with package itself. did you setup the mime type as

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
in the email?

from excel.

cicelcup avatar cicelcup commented on August 19, 2024

Hello. Thanks for answer me... the email opens well and the file opens and downloads wells. the issue is when I tried to copy a sheet from the file to another excel file before I save it.
I tried several times checking with part of the code is producing the error. I found it here:

var sheet = excel[AppStrings.excelSheetName];
excel.setDefaultSheet(AppStrings.excelSheetName);
when I create a sheet using this procedure, any time that I tried to copy the sheet to another excel file, excel crashed. (this doesn't happen if I saved the file into excel).

Now I am getting the default sheet page and I successfully can copy that sheet to another excel file like this:

var excel = Excel.createExcel();
//get the sheet Name (other sheet creation throws error so far)
var sheetName = await excel.getDefaultSheet();
//Create the sheet
var sheet = excel[sheetName];

In this way, it works perfectly... So, I guess the errors come when we create a excel sheet or when we set the default excel page

I'm trying to understand the package to see what happens, but I am not so familiar with it.

from excel.

justkawal avatar justkawal commented on August 19, 2024

Are you trying to copy one sheet from excel to another excel files,
like communicating data between 2 excel files ??

from excel.

cicelcup avatar cicelcup commented on August 19, 2024

No.. I am just would like to write data in another sheet different than the default one... it's like create a new sheet, set some data and save it

from excel.

justkawal avatar justkawal commented on August 19, 2024

Can you post the log of the issue ??

from excel.

cicelcup avatar cicelcup commented on August 19, 2024

I cannot reproduce any log. In flutter everything appears to be ok. The issue comes when I opened the generated excel file and try to copy that sheet to another workbook in another excel file (it seems the excel is not recognizable).

The errors come when I create the excel in this way:
var excel = Excel.createExcel();
var sheet = excel[AppStrings.excelSheetName];
excel.setDefaultSheet(AppStrings.excelSheetName);

instead of:
var excel = Excel.createExcel();
//get the sheet Name (other sheet creation throws error so far)
var sheetName = await excel.getDefaultSheet();
//Create the sheet
var sheet = excel[sheetName];

from excel.

justkawal avatar justkawal commented on August 19, 2024

Ok can you post the issue text from the terminal or log cat related to excel so that we can know what problem you are facing.

from excel.

justkawal avatar justkawal commented on August 19, 2024

I hope the issue will be resolved by now on your own,

If you thinks that the issue still persist then feel free to re-open the issue.

from excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.