Can't save the file

Issue #1223 resolved
Cristian created an issue

When i try to save a opened file nothing happens no exception no errors nothing, it generate a file with 10kb size, when it try to open it in excel say is not a valid file Here is some example form my code:

work_book_path = os.path.join(os.getcwd(), "files_at_project_level", s)
work_book = openpyxl.load_workbook(work_book_path)
work_book.save("sadas.xlsx")

Note: the file that i want to save have aprox 20 MB

Comments (9)

  1. Cristian reporter

    I have a new problem new when i save the document aster i opened it whit no edits i get an error in file with the recover content, i press "yes" and i get this Capture.PNG

    The code is the same:

    work_book_path = os.path.join(os.getcwd(), "files_at_project_level", s)
    work_book = openpyxl.load_workbook(work_book_path)
    work_book.save("sadas.xlsx")
    
  2. CharlieC

    There are problems in tables with cells that have any kind of trailing whitespace. I've made a change in the 2.6 branch that should fix this. You can try it with a checkout of the 2.6 branch (see the documentation for instructions).

    If this doesn't solve the problem then you will need to provide a sample file.

  3. Log in to comment