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

Cannot open output in Libreoffice #82

Closed
akbertram opened this issue Jun 11, 2019 · 2 comments
Closed

Cannot open output in Libreoffice #82

akbertram opened this issue Jun 11, 2019 · 2 comments

Comments

@akbertram
Copy link

I'm unable to open output in LibreOffice Calc from a simple test case from fastexcel-writer 0.10.7:

public class FastExcelTest {

    @Test
    public void simpleWorkbook() throws IOException {
        OutputStream os = new FileOutputStream("/tmp/test2.xlsx");
        Workbook wb = new Workbook(os, "MyApplication", "1.0");
        Worksheet ws = wb.newWorksheet("Sheet 1");
        ws.value(0, 0, "This is a string in A1");
        ws.finish();
        wb.finish();
        os.close();
    }
}

If I try to open it in LibreOffice Calc, I get the message:

The file 'test2.xlsx' is corrupt and therefore cannot be opened. LibreOffice can try to repair the file.

If I choose "Yes", LibreOffice is unsuccessfully with the repair.

Am I missing something?

The version of LibreOffice is:

Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial7

@akbertram
Copy link
Author

Nevermind, was not actually using fastexcel-writer 0.10.7! It works with the latest version.

@rzymek
Copy link
Collaborator

rzymek commented Jun 12, 2019

Yep, it was fixed by e31d1e5 (downstream: rzymek/opczip@d84563b)

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

2 participants